]> granicus.if.org Git - llvm/commit
[InstCombine] use m_APInt to allow ashr folds for vectors with splat constants
authorSanjay Patel <spatel@rotateright.com>
Sat, 21 Jan 2017 17:59:59 +0000 (17:59 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 21 Jan 2017 17:59:59 +0000 (17:59 +0000)
commit1493913c79ca123ec599b12070f8bb23b73d8b39
treeab803cf9b2ca631ff99eb40b379ece697be3bf54
parent248067085e93bd01b71ff039c35263f4e29df63e
[InstCombine] use m_APInt to allow ashr folds for vectors with splat constants

We may be able to assert that no shl-shl or lshr-lshr pairs ever get here
because we should have already handled those in foldShiftedShift().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292726 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineShifts.cpp
test/Transforms/InstCombine/shift-sra.ll