[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)
commit3e1ae72fcf0c1480e741f56987934aee8bc80b53
treecbaaecbfab377fc68ecbc3d4fa69dd7a01bb2df5
parentdcaf4e2139f1c07fc5b39e66ac55e49bd0c1a2d5
[InstCombine] allow shl demanded bits folds with splat constants

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

llvm-svn: 300898
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/apint-shift.ll
llvm/test/Transforms/InstCombine/pr17827.ll
llvm/test/Transforms/InstCombine/shift.ll