[InstCombine] change insertRangeTest() to use APInt instead of Constant; NFCI
authorSanjay Patel <spatel@rotateright.com>
Wed, 31 Aug 2016 19:49:56 +0000 (19:49 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 31 Aug 2016 19:49:56 +0000 (19:49 +0000)
commit85d79744df643b6ee828a6d1f72d7a070ebf6a3b
tree3190a679eff7dd0a775905df0d60f9e875daed6f
parent667d630b0572f46ba5061276df57ed91a5b07598
[InstCombine] change insertRangeTest() to use APInt instead of Constant; NFCI

This is prep work before changing the callers to also use APInt which will
allow folds for splat vectors. Currently, the callers have ConstantInt
guards in place, so no functional change intended with this commit.

llvm-svn: 280282
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h