[llvm-commits] [llvm] r149596 - /llvm/trunk/lib/CodeGen/LiveInterval.cpp
Lang Hames
lhames at gmail.com
Wed Feb 1 22:55:46 PST 2012
Author: lhames
Date: Thu Feb 2 00:55:45 2012
New Revision: 149596
URL: http://llvm.org/viewvc/llvm-project?rev=149596&view=rev
Log:
Break as soon as the MustMapCurValNos flag is set - no need to reiterate.
Modified:
llvm/trunk/lib/CodeGen/LiveInterval.cpp
Modified: llvm/trunk/lib/CodeGen/LiveInterval.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveInterval.cpp?rev=149596&r1=149595&r2=149596&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveInterval.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveInterval.cpp Thu Feb 2 00:55:45 2012
@@ -381,8 +381,10 @@
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
More information about the llvm-commits
mailing list