]> granicus.if.org Git - llvm/commit
[InstCombine] allow shl demanded bits folds with splat constants
authorSanjay Patel <spatel@rotateright.com>
Thu, 20 Apr 2017 21:33:02 +0000 (21:33 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 20 Apr 2017 21:33:02 +0000 (21:33 +0000)
commita24f1373602b68b8dd44a7404fd2e68198bc56e5
tree0837c63a1366e6755d3656167c5883c054b5e2bd
parent7b99ac113922a6127cdc5b8cac45a281caa14cf4
[InstCombine] allow shl demanded bits folds with splat constants

More fixes are needed to enable the helper SimplifyShrShlDemandedBits().

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