Revert 209903 and 210040.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 7 Jun 2014 04:12:35 +0000 (04:12 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 7 Jun 2014 04:12:35 +0000 (04:12 +0000)
commit68caf1727f809804b4fcfcefd475490fef9d304d
treea121ad6bd8b7b3395fa0fa675bf66948f234bff5
parent808823cf77076a4a77937a02b0c51b315f722b7b
Revert 209903 and 210040.

The messages were

 "PR19753: Optimize comparisons with "ashr exact" of a constanst."
 "Added support to optimize comparisons with "lshr exact" of a constant."

They were not correctly handling signed/unsigned operation differences,
causing pr19958.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210393 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp.ll