https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77484
--- Comment #2 from Jan Hubicka <hubicka at ucw dot cz> --- > IIRC the measurements have been run on x86 only, they are done "statically", > that is, verify the prediction against real outcomes as computed by the edge > profile > which is target independent. Yes, the measurements should be target independent modulo the differences we already see at early gimple level (different headers, different word sizes etc). I will take a look how the predictions work for gap and if they can be improved. Of course even improvements in profile guessing doesn't always guarantee better final code. It sometimes happen that codegen just got lucky with numbers it used to be fed with. We do have improtant problems with jump threading and profile updating. That needs to be solved first IMO. I will try to find time for that during Cauldron.