summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-08-26 16:42:33 +0000
committerSanjay Patel <spatel@rotateright.com>2016-08-26 16:42:33 +0000
commitd3c7bb28be79af7367ca0fa9adb9fe458c8da0fa (patch)
treeba1296265206e364f82813bb63da17442a15a470 /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parent3db176410a195396bcca198fcfbc27a2b069b308 (diff)
downloadbcm5719-llvm-d3c7bb28be79af7367ca0fa9adb9fe458c8da0fa.tar.gz
bcm5719-llvm-d3c7bb28be79af7367ca0fa9adb9fe458c8da0fa.zip
[InstCombine] add helper function for folding of icmp (and X, C2), C; NFC
llvm-svn: 279834
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index 32e0bdd3da4..8619ac6fcf2 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -579,6 +579,8 @@ private:
const APInt *C);
Instruction *foldICmpAddConstant(ICmpInst &Cmp, BinaryOperator *Add,
const APInt *C);
+ Instruction *foldICmpAndConstConst(ICmpInst &Cmp, BinaryOperator *And,
+ const APInt *C);
Instruction *foldICmpEqualityWithConstant(ICmpInst &ICI);
Instruction *foldICmpIntrinsicWithConstant(ICmpInst &ICI);
OpenPOWER on IntegriCloud