mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 05:32:22 +00:00
reduce indentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0298dbf019
commit
50d8e491a2
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user