Use the new infrastructure for listening to node updates to

keep the LegalizeTypes node flags up to date when doing a RAUW.
This fixes a nasty bug that Duncan ran into and makes the 
previous (nonbuggy case) more efficent.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2008-02-03 07:08:51 +00:00
parent d8cd3be370
commit 42bd25f8ec
2 changed files with 34 additions and 31 deletions

View File

@@ -117,6 +117,13 @@ public:
void run();
/// ReanalyzeNodeFlags - Recompute the NodeID flags for the specified node,
/// adding it to the worklist if ready.
void ReanalyzeNodeFlags(SDNode *N) {
N->setNodeId(NewNode);
MarkNewNodes(N);
}
private:
void MarkNewNodes(SDNode *N);