summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-08-20 23:04:25 +0000
committerCraig Topper <craig.topper@intel.com>2018-08-20 23:04:25 +0000
commitbee74793a3227cd62b4208aab08faa9631506d5c (patch)
treefaa91c8ec8854da43500bafc8e2c66bcefb9b469 /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parentc2c33c8e64a91ffee643f414b1a731dcd184d35b (diff)
downloadbcm5719-llvm-bee74793a3227cd62b4208aab08faa9631506d5c.tar.gz
bcm5719-llvm-bee74793a3227cd62b4208aab08faa9631506d5c.zip
[InstCombine] Add splat vector constant support to foldICmpAddOpConst.
Differential Revision: https://reviews.llvm.org/D50946 llvm-svn: 340231
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index 58ef3d41415..4d9a53c33f6 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -813,7 +813,7 @@ private:
ConstantInt *AndCst = nullptr);
Instruction *foldFCmpIntToFPConst(FCmpInst &I, Instruction *LHSI,
Constant *RHSC);
- Instruction *foldICmpAddOpConst(Value *X, ConstantInt *CI,
+ Instruction *foldICmpAddOpConst(Value *X, const APInt &C,
ICmpInst::Predicate Pred);
Instruction *foldICmpWithCastAndCast(ICmpInst &ICI);
OpenPOWER on IntegriCloud