diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-03 07:08:08 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-03 07:08:08 +0000 |
commit | d0b053d2298c1f7faa3dcd67287f96b7cb0d188c (patch) | |
tree | 8214403b34e8236858e9edad3ae6bfb036f5c0f0 /llvm/lib/Transforms/InstCombine/InstCombineInternal.h | |
parent | af940ae2805f09c46b2305cd6d4862fbe86b6c38 (diff) | |
download | bcm5719-llvm-d0b053d2298c1f7faa3dcd67287f96b7cb0d188c.tar.gz bcm5719-llvm-d0b053d2298c1f7faa3dcd67287f96b7cb0d188c.zip |
[InstCombine] Make foldOpWithConstantIntoOperand take a BinaryOperator instead of a generic Instruction.
It blindly assumes there are two operands so make it explicit.
llvm-svn: 299351
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 88e654292b7..ab15fd84b24 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h +++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h @@ -571,7 +571,7 @@ private: Instruction *FoldOpIntoSelect(Instruction &Op, SelectInst *SI); /// This is a convenience wrapper function for the above two functions. - Instruction *foldOpWithConstantIntoOperand(Instruction &I); + Instruction *foldOpWithConstantIntoOperand(BinaryOperator &I); /// \brief Try to rotate an operation below a PHI node, using PHI nodes for /// its operands. |