[DAGCombiner] make folds of binops safe for opcodes that produce >1 value
authorSanjay Patel <spatel@rotateright.com>
Thu, 23 May 2019 20:17:25 +0000 (20:17 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 23 May 2019 20:17:25 +0000 (20:17 +0000)
commit7d6c0bce503fd92fa48db88a944b01fa2e7402b4
tree966131d5d721bea5ae81b46ae2adba39b4a5dfd8
parent56d69ef8ca1f2826b1e7c620b871f5074926a43a
[DAGCombiner] make folds of binops safe for opcodes that produce >1 value

This is no-functional-change-intended currently because the definition
of isBinOp() only includes opcodes that produce 1 value. But if we
share that implementation with isCommutativeBinOp() as proposed in
D62191, then we need to make sure that the callers bail out for
opcodes that they are not prepared to handle correctly.

llvm-svn: 361547
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp