diff options
author | Lang Hames <lhames@gmail.com> | 2012-02-02 06:55:45 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-02-02 06:55:45 +0000 |
commit | d88710a3e0847baec0847b802637a48b71718d4d (patch) | |
tree | 0d11fc66402123d3d93716dc17fff80c2aac82cf /lib/CodeGen/LiveInterval.cpp | |
parent | 5d4e18bc39fea892f523d960213906d296d3cb38 (diff) |
Break as soon as the MustMapCurValNos flag is set - no need to reiterate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149596 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 0dbaaf804b..f05574ee62 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -381,8 +381,10 @@ void LiveInterval::join(LiveInterval &Other, for (unsigned i = 0; i != NumVals; ++i) { unsigned LHSValID = LHSValNoAssignments[i]; if (i != LHSValID || - (NewVNInfo[LHSValID] && NewVNInfo[LHSValID] != getValNumInfo(i))) + (NewVNInfo[LHSValID] && NewVNInfo[LHSValID] != getValNumInfo(i))) { MustMapCurValNos = true; + break; + } } // If we have to apply a mapping to our base interval assignment, rewrite it |