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)
commit582c890fbe63c136981bc0fb69ea9bee32c5d58c
tree73ee33a9f67721697ae8d1a3fc854f45ee2ce5de
parent3c6b0c078e96fa992d3fbf1f222e026c6497fbf9
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.

llvm-svn: 210048
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/cast.ll
llvm/test/Transforms/InstCombine/ffs-1.ll
llvm/test/Transforms/InstCombine/rem.ll
llvm/test/Transforms/InstCombine/select.ll
llvm/test/Transforms/InstCombine/sext.ll
llvm/test/Transforms/InstCombine/zext-bool-add-sub.ll