[PATCH] D33186: [InstCombine] Canonicalize clamp of float types to minmax in fast mode.

James Molloy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 05:11:08 PDT 2017


jmolloy added a comment.

Right; that's X86's strange not-a-maxnum-not-a-maxnan behaviour where it just selects the zeroth operand.

You should be able to select that for either of FMAXNAN or FMAXNUM though when the "nnan" flag is set on the instruction, which should be the case in fast-math mode?


https://reviews.llvm.org/D33186





More information about the llvm-commits mailing list