diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-03 07:13:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-03 07:13:32 +0000 |
commit | 62f67ea73aa9b727cffc8a99fdf469521bbccec5 (patch) | |
tree | 675b4e6aad1e259b6ea8d17bfb0541c5ffaf5e2c /llvm/lib | |
parent | 4e9898825e914ed74444b1f320cff43681945479 (diff) | |
download | bcm5719-llvm-62f67ea73aa9b727cffc8a99fdf469521bbccec5.tar.gz bcm5719-llvm-62f67ea73aa9b727cffc8a99fdf469521bbccec5.zip |
handle the case where a node can become ready to process
multiple times due to a RAUW.
llvm-svn: 46680
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index 85a96a8e265..76b7527f68b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/llvm/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); } }; } diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h index 912747df704..23d9bf125ec 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h @@ -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. |