[Bug tree-optimization/94920] Failure to optimize abs pattern from arithmetic with selected operands based on comparisons with 0

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 25 22:20:10 GMT 2022


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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #6)
> (In reply to Paul Hua from comment #5)
> > 
> > Yes, we should do. This also fails the ABS_EXPR scan-tree-dump on LoongArch.
> 
> And on riscv32. I will look into that failure later this week.

I am suspecting it is because for both LoongArch and RISCV,
logical-op-non-short-circuit defualts to 0. I am going to debug it right now.


More information about the Gcc-bugs mailing list