OSDN Git Service

If ADD, SUB, or MUL have an overflow bit that's used, don't do transformation on
authorBill Wendling <isanbard@gmail.com>
Wed, 10 Dec 2008 22:36:00 +0000 (22:36 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 10 Dec 2008 22:36:00 +0000 (22:36 +0000)
commit2476e5d3458ea3543f233159fcf4f2fea47426e9
tree046f753b4bf61cfd95974db041702ff13b57f762
parente5ad88e97fea74dd55675fa3ded89f01fb18f363
If ADD, SUB, or MUL have an overflow bit that's used, don't do transformation on
them. The DAG combiner expects that nodes that are transformed have one value
result.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60857 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/add-with-overflow.ll