[PATCH] D33863: [DAGComine] (fadd x, undef) -> undef and (fmul x, undef) -> undef

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 11:10:52 PST 2017


deadalnix updated this revision to Diff 122280.
deadalnix added a comment.

Make sure we do not transform is x can be Nan, also do the transformation for fsub and add arguments in various tests to make sure they don't get folded and continue to test what they are supposed to.


https://reviews.llvm.org/D33863

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/X86/2012-04-26-sdglue.ll
  test/CodeGen/X86/pr23103.ll
  test/CodeGen/X86/pr34177.ll
  test/CodeGen/X86/sse3-avx-addsub-2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33863.122280.patch
Type: text/x-patch
Size: 16253 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171109/eb6f1b25/attachment.bin>


More information about the llvm-commits mailing list