diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-08-31 19:49:56 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-08-31 19:49:56 +0000 |
commit | 85d79744df643b6ee828a6d1f72d7a070ebf6a3b (patch) | |
tree | 3190a679eff7dd0a775905df0d60f9e875daed6f /llvm/lib/Transforms/InstCombine/InstCombineInternal.h | |
parent | 667d630b0572f46ba5061276df57ed91a5b07598 (diff) | |
download | bcm5719-llvm-85d79744df643b6ee828a6d1f72d7a070ebf6a3b.tar.gz bcm5719-llvm-85d79744df643b6ee828a6d1f72d7a070ebf6a3b.zip |
[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
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineInternal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h index 91d937c4a15..287ee4fddd5 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -592,8 +592,8 @@ private: Value *FoldLogicalPlusAnd(Value *LHS, Value *RHS, ConstantInt *Mask, bool isSub, Instruction &I); - Value *InsertRangeTest(Value *V, Constant *Lo, Constant *Hi, bool isSigned, - bool Inside); + Value *insertRangeTest(Value *V, const APInt &Lo, const APInt &Hi, + bool isSigned, bool Inside); Instruction *PromoteCastOfAllocation(BitCastInst &CI, AllocaInst &AI); Instruction *MatchBSwap(BinaryOperator &I); bool SimplifyStoreAtEndOfBlock(StoreInst &SI); |