[Bug tree-optimization/108582] [13 Regression] ICE on valid code at -Os and above with "-fno-tree-ccp -fno-tree-dce": tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.cc:87

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 28 18:12:55 GMT 2023


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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
PHI g_9 reduced for COND_EXPR in block 7 to g_8.
statement un-sinked:
k_22 = k_11 | iftmp.5_13;
Removing basic block 8
;; basic block 8, loop depth 0
;;  pred:       7
# iftmp.5_13 = PHI <2(7)>
;;  succ:       9

Looks like match-and-simplify phiopt does not take into account PHInodes ...


More information about the Gcc-bugs mailing list