[Bug tree-optimization/61747] min,max pattern not always properly optimized (for sse4 targets)

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 18 11:15:34 GMT 2023


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
The cases with constant arguments fail to be recognized by the x86 conditional
move expansion because RTL expansion makes it too difficult to see they are
equal where required.  That is emit_conditional_move forcing the constant
to two different regs via prepare_cmp_insn.

I'm testing a patch for this.


More information about the Gcc-bugs mailing list