[InstCombine] Make foldOpWithConstantIntoOperand take a BinaryOperator instead of...
authorCraig Topper <craig.topper@gmail.com>
Mon, 3 Apr 2017 07:08:08 +0000 (07:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 3 Apr 2017 07:08:08 +0000 (07:08 +0000)
commitd0b053d2298c1f7faa3dcd67287f96b7cb0d188c
tree8214403b34e8236858e9edad3ae6bfb036f5c0f0
parentaf940ae2805f09c46b2305cd6d4862fbe86b6c38
[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
llvm/lib/Transforms/InstCombine/InstCombineInternal.h
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp