Revert "Add the nsw flag when we detect that an add will not signed overflow."
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 2 Jun 2014 21:12:19 +0000 (21:12 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 2 Jun 2014 21:12:19 +0000 (21:12 +0000)
commit2e1c072976a4a990bf911d6a5e127ab3d8ce0090
treed18491eb6452d57173be20c3653a0f1588b517dc
parent8962f1959d2bcfcffb6be4cc0f4170121b960595
Revert "Add the nsw flag when we detect that an add will not signed overflow."

This reverts commit r210029.

It was not correctly handling cases where LHS and RHS had multiple but different
sign bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210048 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/ffs-1.ll
test/Transforms/InstCombine/rem.ll
test/Transforms/InstCombine/select.ll
test/Transforms/InstCombine/sext.ll
test/Transforms/InstCombine/zext-bool-add-sub.ll