[InstCombine] Deal with -(trunc(X >>u 63)) -> trunc(X >>s 63)
commitffe458a6f13489ee2e3938e1f5499af33a1a3eb2
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 1 Oct 2019 17:50:20 +0000 (1 17:50 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 1 Oct 2019 17:50:20 +0000 (1 17:50 +0000)
tree4a229f941290ff3bd5c0b5bd8233e3ec7ffd5d83
parentd9952bbfc71842047204daf903ca3f590b7e11c3
[InstCombine] Deal with -(trunc(X >>u 63)) -> trunc(X >>s 63)

Identical to it's trunc-less variant, just pretent-to hoist
trunc, and everything else still holds:
https://rise4fun.com/Alive/JRU

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373364 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/high-bit-signmask-with-trunc.ll