diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-02 17:57:30 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-02 17:57:30 +0000 |
commit | 70e4f434ae2da6c178460f920de9315dc435d669 (patch) | |
tree | b61557642e800b049afd2f1986d3e13a45393b08 /llvm/lib/Transforms/InstCombine/InstCombineInternal.h | |
parent | 0e2f8cd8758614fcf70ace2213f000e640118609 (diff) | |
download | bcm5719-llvm-70e4f434ae2da6c178460f920de9315dc435d669.tar.gz bcm5719-llvm-70e4f434ae2da6c178460f920de9315dc435d669.zip |
[InstCombine] Make InstCombiner::OptAndOp take a BinaryOperator instead of an Instruction.
The callers have already performed the necessary cast before calling. This allows us to remove a comment that says the instruction must be a BinaryOperator and make it explicit in the argument type.
Had to add a default case to the switch because BinaryOperator::getOpcode() returns a BinaryOps enum.
llvm-svn: 299339
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineInternal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h index 6bf9647061f..88e654292b7 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -650,7 +650,7 @@ private: SelectPatternFlavor SPF2, Value *C); Instruction *foldSelectInstWithICmp(SelectInst &SI, ICmpInst *ICI); - Instruction *OptAndOp(Instruction *Op, ConstantInt *OpRHS, + Instruction *OptAndOp(BinaryOperator *Op, ConstantInt *OpRHS, ConstantInt *AndRHS, BinaryOperator &TheAnd); Value *insertRangeTest(Value *V, const APInt &Lo, const APInt &Hi, |