handle the case where a node can become ready to process

multiple times due to a RAUW.

llvm-svn: 46680
This commit is contained in:
Chris Lattner 2008-02-03 07:13:32 +00:00
parent 4e9898825e
commit 62f67ea73a
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}
};
}

View File

@ -40,7 +40,7 @@ namespace llvm {
class VISIBILITY_HIDDEN DAGTypeLegalizer {
TargetLowering &TLI;
SelectionDAG &DAG;
public:
// NodeIDFlags - This pass uses the NodeID on the SDNodes to hold information
// about the state of the node. The enum has all the values.
enum NodeIDFlags {
@ -57,7 +57,7 @@ class VISIBILITY_HIDDEN DAGTypeLegalizer {
// 1+ - This is a node which has this many unlegalized operands.
};
private:
enum LegalizeAction {
Legal, // The target natively supports this type.
Promote, // This type should be executed in a larger type.