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 | a9a3192baef28d49cc2cb1805048c11626ab3f21 (patch) | |
| tree | 9a631ebe204c82dfcbe6ad380737891355facdad /lib/CodeGen/SplitKit.cpp | |
| parent | cebdfd04596e6f57d76d948ce716e0dc8ac6e82f (diff) | |
| download | external_llvm-a9a3192baef28d49cc2cb1805048c11626ab3f21.zip external_llvm-a9a3192baef28d49cc2cb1805048c11626ab3f21.tar.gz external_llvm-a9a3192baef28d49cc2cb1805048c11626ab3f21.tar.bz2 | |
Aggressively prune the DFS when inserting phi-defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
| -rw-r--r-- | lib/CodeGen/SplitKit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp index b081bf3..dae282d 100644 --- a/lib/CodeGen/SplitKit.cpp +++ b/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. |
