rdar://12329730 (2nd part, revised)
authorShuxin Yang <shuxin.llvm@gmail.com>
Tue, 4 Dec 2012 03:28:32 +0000 (03:28 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Tue, 4 Dec 2012 03:28:32 +0000 (03:28 +0000)
commitbba3eb054a4e0e052cdeff22e678c52c4e59f07e
tree5d2f2bdc5691d86fd14c6736477f1e32763fa0c2
parentb715b205a41dc53942acbcfbfdbdce6bdaf9a4aa
rdar://12329730 (2nd part, revised)

The type of shirt-right (logical or arithemetic) should remain unchanged
when transforming  "X << C1 >> C2" into "X << (C1-C2)"

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