[PATCH] InstCombine: cannot fold "fcmp x, undef" because x can be NaN

Mehdi AMINI mehdi.amini at apple.com
Sat Feb 21 13:07:32 PST 2015


After more thought, I found out we can fold depending on if fcmp is or isn't ordered.


http://reviews.llvm.org/D7617

Files:
  include/llvm/IR/Instructions.h
  lib/Analysis/InstructionSimplify.cpp
  lib/IR/ConstantFold.cpp
  test/Transforms/InstCombine/fcmp.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7617.20466.patch
Type: text/x-patch
Size: 5687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150221/1e107d9a/attachment.bin>


More information about the llvm-commits mailing list