https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125731

--- Comment #3 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Worth noting that fixing this will trigger regressions on loongarch.  Loongarch
seems to explcitly want prefer a sequence like scc+sll+add for a conditional
add by a power of 2 rather than a lui+maskeq+add.

I'm currently working on a prerequisite improvement to ifcvt that allows us to
use the shift based sequences to select across A and A OP C where C is 2^n.

Reply via email to