https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122592
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Component|target |rtl-optimization
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
```
Trying 51, 3 -> 52:
51: r113:SI=zero_extend(r108:HI)
REG_DEAD r108:HI
3: r106:SI=zero_extend(x1:HI)
52: r106:SI={(cc:CC==0)?r106:SI:r113:SI}
REG_DEAD r113:SI
REG_DEAD cc:CC
Failed to match this instruction:
(set (reg/v:SI 106 [ a ])
(if_then_else:SI (ne (reg:CC 66 cc)
(const_int 0 [0]))
(zero_extend:SI (reg:HI 108 [ a_8 ]))
(zero_extend:SI (reg:HI 1 x1 [ a ]))))
```
Where we don't try to move the zero_extend outside of the if_then_else.
If we do that I think the rest will be optimized.