mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user