diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-18 19:00:11 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-08-18 19:00:11 +0000 |
commit | 5b4cb08471a639400ba2bf671a3147870815c1b9 (patch) | |
tree | 0b693db197ecc027cab3406805698c325b3fc842 /llvm/lib/CodeGen/SplitKit.cpp | |
parent | ce6f055b4df16c2df17846753a08ffa419da1642 (diff) | |
download | bcm5719-llvm-5b4cb08471a639400ba2bf671a3147870815c1b9.tar.gz bcm5719-llvm-5b4cb08471a639400ba2bf671a3147870815c1b9.zip |
Aggressively prune the DFS when inserting phi-defs.
llvm-svn: 111394
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index b081bf37337..dae282dfce6 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -446,9 +446,9 @@ VNInfo *LiveIntervalMap::mapValue(const VNInfo *ParentVNI, SlotIndex Idx) { } // No need to search the children, we found a dominating value. - // FIXME: We could prune up to the last phi-def we inserted, need df_iterator - // for that. - IDFI.skipChildren(); + // MBB is either the found dominating value, or the last phi-def we created. + // Either way, the children of MBB would be shadowed, so don't search them. + IDFI.skipChildren(MBB); } // The search should at least find a dominating value for IdxMBB. |