reduce indentation

llvm-svn: 46377
This commit is contained in:
Chris Lattner 2008-01-25 23:34:24 +00:00
parent 0cb1ba2c5e
commit cb3cf546c3
1 changed files with 43 additions and 41 deletions

View File

@ -582,13 +582,17 @@ void DAGCombiner::Run(bool RunningAfterLegalize) {
SDOperand RV = combine(N);
if (RV.Val) {
if (RV.Val == 0)
continue;
++NodesCombined;
// If we get back the same node we passed in, rather than a new node or
// zero, we know that the node must have defined multiple values and
// CombineTo was used. Since CombineTo takes care of the worklist
// mechanics for us, we have no work to do in this case.
if (RV.Val != N) {
if (RV.Val == N)
continue;
assert(N->getOpcode() != ISD::DELETED_NODE &&
RV.Val->getOpcode() != ISD::DELETED_NODE &&
"Node was deleted but visit returned new node!");
@ -624,8 +628,6 @@ void DAGCombiner::Run(bool RunningAfterLegalize) {
// Finally, since the node is now dead, remove it from the graph.
DAG.DeleteNode(N);
}
}
}
// If the root changed (e.g. it was a dead load, update the root).
DAG.setRoot(Dummy.getValue());