OSDN Git Service

[InstCombine] Improve vector undef handling for sext(ashr(shl(trunc()))) fold
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 1 Dec 2020 12:11:14 +0000 (15:11 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 1 Dec 2020 12:13:08 +0000 (15:13 +0300)
commitaa1aa135097ecfab6d9917a435142030eff0a226
treeedf0bef12757ccc1f321f543746ed5baad25eb73
parent075faa8d40b113d19c3643b3bf2cc74f146612b0
[InstCombine] Improve vector undef handling for sext(ashr(shl(trunc()))) fold

If the shift amount was undef for some lane, the shift amount in opposite
shift is irrelevant for that lane, and the new shift amount for that lane
can be undef.
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/sext.ll