I can't see the grade of gasoline having much to do with your problem. The higher the octane, the slower the flame travels (less volatility). Back in the day, carburated car engines were running so lean, they used to ping a lot running regular unleaded. If you were too cheap to afford the tuneup and the associated adjustments, you just went up a grade or two on gas, and that usually took care of the ping. I'm sure ShinyChest will have some input on that.
I'd double check all the stuff in a tuneup. Check the timing, make sure it's spot on. Check the wiring on the spark plugs. Sometimes the ends at the spark plug cap will get loose. The fix for that is to remove the spark plug cap, cut the wire back about 1/4", and put the cap back on. If it's the factory coils, you'll notice they are a metal conductor and not the fancy graphite/fiberglass stuff that's on cars these days. The coils don't generate a really big voltage, and need metal spark plug wires to make good spark.
Have you check the cam chain adjustments? Sometimes if that hasn't been done in a while, the engine and ignition may be a little out of whack when the RPMs climb.
If that doesn't get it, you may want to pull the carb bank, and give the insides a good cleaning. There have been many many postings on carb cleaning on this forum, so the Search bar on the home page is your friend.
Try those things, and see if it helps any.
Luke M
Used to have a 1979 CB750L, sold it as a parts bike, now riding a slightly modified 1984 VT700C. Network/Field Engineer. Central OH, USA, Earth, Sol System, Milky Way Galaxy, Universe.