[Bug tree-optimization/110365] wrong code at -O2 and -O3 on x86_64-linux-gnu

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 22 15:34:39 GMT 2023


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

phiopt match-simplify trying:
        d_6 > 0 ? 1 : e_1
Matching expression match.pd:1990, gimple-match-5.cc:23
Matching expression match.pd:1990, gimple-match-5.cc:23
Applying pattern match.pd:4742, gimple-match-2.cc:16205
Folded into the sequence:
_16 = d_6 > 0;
_8 = (int) _16;
_13 = e_1 | _8;
statement un-sinked:
e_1 = -d_6;
Removing basic block 5
;; basic block 5, loop depth 0
;;  pred:       4
;;  succ:       6


More information about the Gcc-bugs mailing list