summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-09-15 14:37:50 +0000
committerSanjay Patel <spatel@rotateright.com>2016-09-15 14:37:50 +0000
commit06b127a7716ae8197c6fc373e723891d248fb2f2 (patch)
tree4f3997a6be978e6f42280c41148cc54d367b723f /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parent7577a3d799b7fd66a9053f6059dcd5877e9d56e5 (diff)
downloadbcm5719-llvm-06b127a7716ae8197c6fc373e723891d248fb2f2.tar.gz
bcm5719-llvm-06b127a7716ae8197c6fc373e723891d248fb2f2.zip
[InstCombine] add helper function for foldICmpWithConstant; NFC
This is a big glob of transforms that probably should work for vectors, but currently they are disallowed because of ConstantInt guards. llvm-svn: 281614
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index 00acab2cbec..5b256cd9912 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -557,6 +557,7 @@ private:
Instruction *foldICmpWithCastAndCast(ICmpInst &ICI);
Instruction *foldICmpUsingKnownBits(ICmpInst &Cmp);
+ Instruction *foldICmpWithConstant(ICmpInst &Cmp);
Instruction *foldICmpInstWithConstant(ICmpInst &Cmp);
Instruction *foldICmpTruncConstant(ICmpInst &Cmp, Instruction *Trunc,
OpenPOWER on IntegriCloud