[llvm-commits] [llvm] r163508 - /llvm/trunk/lib/CodeGen/StackColoring.cpp
Nadav Rotem
nrotem at apple.com
Mon Sep 10 05:47:38 PDT 2012
Author: nadav
Date: Mon Sep 10 07:47:38 2012
New Revision: 163508
URL: http://llvm.org/viewvc/llvm-project?rev=163508&view=rev
Log:
Stack Coloring: When searching for disjoint regions, do not compare intervals twice or to theirself.
Modified:
llvm/trunk/lib/CodeGen/StackColoring.cpp
Modified: llvm/trunk/lib/CodeGen/StackColoring.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackColoring.cpp?rev=163508&r1=163507&r2=163508&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackColoring.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackColoring.cpp Mon Sep 10 07:47:38 2012
@@ -630,7 +630,7 @@
if (SortedSlots[I] == -1)
continue;
- for (unsigned J=0; J < NumSlots; ++J) {
+ for (unsigned J=I+1; J < NumSlots; ++J) {
if (SortedSlots[J] == -1)
continue;
More information about the llvm-commits
mailing list