diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-07-21 23:27:36 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-07-21 23:27:36 +0000 |
commit | 18fa9d3ca147cd46f3ef9f191e449debe4fc5465 (patch) | |
tree | eb560428df27792dd3bca61978e5b563bdf3883b /llvm/lib/Transforms/InstCombine/InstCombineInternal.h | |
parent | c076c490761998da900ed955e60dba1befc84866 (diff) | |
download | bcm5719-llvm-18fa9d3ca147cd46f3ef9f191e449debe4fc5465.tar.gz bcm5719-llvm-18fa9d3ca147cd46f3ef9f191e449debe4fc5465.zip |
[InstCombine] break up foldICmpEqualityWithConstant(); NFCI
Almost all of these folds require changes to allow vector types.
Splitting up the logic should make that easier to do incrementally.
llvm-svn: 276360
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineInternal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h index 4af199de999..61dbd31448b 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -585,6 +585,8 @@ private: ConstantInt *RHS); Instruction *foldICmpEqualityWithConstant(ICmpInst &ICI, Instruction *LHS, ConstantInt *RHS); + Instruction *foldICmpIntrinsicWithConstant(ICmpInst &ICI, Instruction *LHS, + ConstantInt *RHS); Instruction *OptAndOp(Instruction *Op, ConstantInt *OpRHS, ConstantInt *AndRHS, BinaryOperator &TheAnd); |