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 | 4d04f753bdd893c6821e620be61f7e717aae6d31 (patch) | |
| tree | e9223a6b75e8aee3a03014d7fcbb00aa8f4e1b4a /llvm | |
| parent | 0f3298e8d450d66d685a25dd6fbc7bdd64f41894 (diff) | |
| download | bcm5719-llvm-4d04f753bdd893c6821e620be61f7e717aae6d31.tar.gz bcm5719-llvm-4d04f753bdd893c6821e620be61f7e717aae6d31.zip | |
Break as soon as the MustMapCurValNos flag is set - no need to reiterate.
llvm-svn: 149596
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 0dbaaf804b6..f05574ee623 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/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 |

