summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-09-15 22:26:31 +0000
committerSanjay Patel <spatel@rotateright.com>2016-09-15 22:26:31 +0000
commit8da42cc5d31384361de9abf645c2e6f95c94198c (patch)
tree8c2fcafb5cea3e450a25d6fbff31537261d86861 /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parent8e8296fad81963bea2c92772dd4c0cbf01273141 (diff)
downloadbcm5719-llvm-8da42cc5d31384361de9abf645c2e6f95c94198c.tar.gz
bcm5719-llvm-8da42cc5d31384361de9abf645c2e6f95c94198c.zip
[InstCombine] move folds for icmp (sh C2, Y), C1 in with other icmp+sh folds; NFCI
llvm-svn: 281672
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index d2149392cb8..78b79dbd848 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -548,10 +548,6 @@ private:
ConstantInt *AndCst = nullptr);
Instruction *foldFCmpIntToFPConst(FCmpInst &I, Instruction *LHSI,
Constant *RHSC);
- Instruction *foldICmpCstShrConst(ICmpInst &I, Value *Op, Value *A,
- const APInt &C1, const APInt &C2);
- Instruction *foldICmpCstShlConst(ICmpInst &I, Value *Op, Value *A,
- const APInt &C1, const APInt &C2);
Instruction *foldICmpAddOpConst(Instruction &ICI, Value *X, ConstantInt *CI,
ICmpInst::Predicate Pred);
Instruction *foldICmpWithCastAndCast(ICmpInst &ICI);
@@ -586,6 +582,10 @@ private:
const APInt *C1);
Instruction *foldICmpAndShift(ICmpInst &Cmp, BinaryOperator *And,
const APInt *C1, const APInt *C2);
+ Instruction *foldICmpShrConstConst(ICmpInst &I, Value *ShAmt, const APInt &C1,
+ const APInt &C2);
+ Instruction *foldICmpShlConstConst(ICmpInst &I, Value *ShAmt, const APInt &C1,
+ const APInt &C2);
Instruction *foldICmpBinOpEqualityWithConstant(ICmpInst &Cmp,
BinaryOperator *BO,
OpenPOWER on IntegriCloud