[Bug tree-optimization/105973] Wrong branch prediction for if (COND) { if(x) noreturn1(); else noreturn2(); }
hubicka at kam dot mff.cuni.cz
gcc-bugzilla@gcc.gnu.org
Fri Jun 17 18:40:23 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105973
--- Comment #7 from hubicka at kam dot mff.cuni.cz ---
> I can try implementing that.
That would be nice. I think if path predictor logic hits the same
predictor both ways, it can simply predict that basic block with the
same predictor (i.e. recurse on that block). It will need to keep
track what basic blocks were already predicted to handle cycles.
Honza
More information about the Gcc-bugs
mailing list