summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackColoring.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-09-10 12:47:38 +0000
committerNadav Rotem <nrotem@apple.com>2012-09-10 12:47:38 +0000
commited242a0f1c2cfaabae6833c9c7ed3a97aca67c29 (patch)
tree0cba3ad065634ca48df0e598e3f1e18102b44d3a /llvm/lib/CodeGen/StackColoring.cpp
parent67313631857a389eb73b01f049d7486ec1a17f6b (diff)
downloadbcm5719-llvm-ed242a0f1c2cfaabae6833c9c7ed3a97aca67c29.tar.gz
bcm5719-llvm-ed242a0f1c2cfaabae6833c9c7ed3a97aca67c29.zip
Stack Coloring: When searching for disjoint regions, do not compare intervals twice or to theirself.
llvm-svn: 163508
Diffstat (limited to 'llvm/lib/CodeGen/StackColoring.cpp')
-rw-r--r--llvm/lib/CodeGen/StackColoring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp
index 027096b8105..45c9af21bb2 100644
--- a/llvm/lib/CodeGen/StackColoring.cpp
+++ b/llvm/lib/CodeGen/StackColoring.cpp
@@ -630,7 +630,7 @@ bool StackColoring::runOnMachineFunction(MachineFunction &Func) {
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;
OpenPOWER on IntegriCloud