[PATCH] D30741: [DAG] recognize div/rem by 0 as undef before trying constant folding

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 8 09:44:20 PST 2017


spatel updated this revision to Diff 91038.
spatel added a subscriber: zvi.
spatel added a comment.

Patch updated:
I didn't notice that an extra x86 test (for https://bugs.llvm.org/show_bug.cgi?id=30693) was failing with this change because it has div-by-0.
I can't tell if that test is useful or not any more ( cc'ing @zvi ).


https://reviews.llvm.org/D30741

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/X86/div-rem-simplify.ll
  test/CodeGen/X86/pr30693.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30741.91038.patch
Type: text/x-patch
Size: 9870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170308/aa7306ae/attachment.bin>


More information about the llvm-commits mailing list