Revert "[InstCombine] Handle logical op in simplifyRangeCheck() (PR59484)"
This reverts commit 492c4718. As pointed out by nloped, the transform in f2 is not correct: If %shr is poison, then freeze may result in a negative value. The transform is correct in the case where the freeze is pushed through the operation in a way that guarantees the result is non-negative, which is the case I had tested.
parent
b3eaf401
Please register or sign in to comment