https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97445
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |97519, 97503 --- Comment #49 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Patch posted for the inline heuristics change https://gcc.gnu.org/pipermail/gcc-patches/2020-October/556685.html Also opened spearate PR on builtin_constant_p folding. I am not sure how to implement that correctly (what are the conditions that make this valid - perhaps for all "i op cst" after all?) Martin, how does the if chain conversion behave on the example? Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97503 [Bug 97503] Suboptimal use of cntlzw and cntlzd https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97519 [Bug 97519] builtin_constant_p (x + cst) should be optimized to builtin_constant_p (x)