[InstCombine] Deal with -(trunc(X >>u 63)) -> trunc(X >>s 63)
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 1 Oct 2019 17:50:20 +0000 (17:50 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 1 Oct 2019 17:50:20 +0000 (17:50 +0000)
commit053014f8f92c4c10847ab441392caeb6a6d0c783
tree968702ad26ff483fb268f60e2cf0fe073777456a
parent65144149d033e06b9fe357e32ed5d2bcabdc8d02
[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

llvm-svn: 373364
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/high-bit-signmask-with-trunc.ll