OSDN Git Service

[InstCombine] Teach canEvaluateZExtd and canEvaluateTruncated to handle vector shifts...
authorCraig Topper <craig.topper@intel.com>
Tue, 15 Aug 2017 22:48:41 +0000 (22:48 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 15 Aug 2017 22:48:41 +0000 (22:48 +0000)
commit30908807b6ca2f78c737aeabd1f7d07656d1fccb
treee148a4cec8b3585dd1ba476ced8169f370e57e1c
parent8e98e027842027dd9973370f111b9f0cf6137752
[InstCombine] Teach canEvaluateZExtd and canEvaluateTruncated to handle vector shifts with splat shift amount

We were only allowing ConstantInt before. This patch allows splat of ConstantInt too.

Differential Revision: https://reviews.llvm.org/D36763

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310970 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/cast.ll