[InstCombine] Cast to BinaryOperator earlier in foldSelectIntoOp to simplify the...
authorCraig Topper <craig.topper@intel.com>
Tue, 8 Aug 2017 06:19:24 +0000 (06:19 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 8 Aug 2017 06:19:24 +0000 (06:19 +0000)
commit8e351e90186a9f31625694f1b28443cc82f7a38a
tree7987f7c5270de2fd9762ae9c89fc20fc08277916
parent327e9ecb0d7ee4a9841c67c72f3f890bd65832ea
[InstCombine] Cast to BinaryOperator earlier in foldSelectIntoOp to simplify the code.

We no longer need the explicit operand count check or the later dynamic cast.

llvm-svn: 310339
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp