The album was recorded in studios throughout the United States , with production from Sounwave , Terrace Martin , Taz `` Tisa `` Arnold , Thundercat , Rahki , LoveDragon , Flying Lotus , Pharrell Williams , Boi-1da , and several other high-profile hip hop producers , as well as executive production from Dr. Dre and Anthony `` Top Dawg `` Tiffith .
To Pimp a Butterfly was an album .