]> granicus.if.org Git - llvm/commit
[InstCombine] use m_APInt to allow (X << C) >>u C --> X & (-1 >>u C) with splat vectors
authorSanjay Patel <spatel@rotateright.com>
Thu, 26 Jan 2017 20:52:27 +0000 (20:52 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 26 Jan 2017 20:52:27 +0000 (20:52 +0000)
commit6a295f2666f00788cfc002f48f4ab13b14235d9a
treecdee7e5d5d13340a0e4b92d15152f925de1de74f
parent8f4444960f668e097afeed90c5183f4c1d99f4eb
[InstCombine] use m_APInt to allow (X << C) >>u C --> X & (-1 >>u C) with splat vectors

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