aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-03 07:13:32 +0000
committerChris Lattner <sabre@nondot.org>2008-02-03 07:13:32 +0000
commitfcd8e9e3a21efb32172a6395e8697889962067e1 (patch)
treed4c7c5d293dc836b5635a25448f47962ceb85772 /lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
parent42bd25f8ec6f506fa40d3304de47ba8a2e306f96 (diff)
handle the case where a node can become ready to process
multiple times due to a RAUW. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeTypes.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeTypes.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
index 85a96a8e26..76b7527f68 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
@@ -234,7 +234,8 @@ namespace {
// Node updates can mean pretty much anything. It is possible that an
// operand was set to something already processed (f.e.) in which case
// this node could become ready. Recompoute its flags.
- DTL.ReanalyzeNodeFlags(N);
+ if (N->getNodeId() != DAGTypeLegalizer::ReadyToProcess)
+ DTL.ReanalyzeNodeFlags(N);
}
};
}