Revert "[InstCombine] fold cast of right-shift if high bits are not demanded (2nd...
authorSanjay Patel <spatel@rotateright.com>
Fri, 24 Sep 2021 14:37:38 +0000 (10:37 -0400)
committerSanjay Patel <spatel@rotateright.com>
Fri, 24 Sep 2021 14:47:35 +0000 (10:47 -0400)
commit3c5500907b1089f4b274b09a195ee0685d51f9e2
treec6b7872d6a97f3d71b7844c53865eddd33584b6e
parent124fcd7e9d2b8831dab0c50d4fce9900b033c6c2
Revert "[InstCombine] fold cast of right-shift if high bits are not demanded (2nd try)"

This reverts commit bb9333c3504a4a02b982526ad8264d14c6ec1ad4.

This exposes another existing bug that causes an infinite loop as shown in
D110170
...so reverting while I look at another fix.
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/trunc-demand.ll