diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-09-10 12:47:38 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-09-10 12:47:38 +0000 |
commit | a7de8a61dfae69885203137f3c712ab3d0cd75a4 (patch) | |
tree | 92fa95047d288e201c74c4b410ce31714bf57835 /lib/CodeGen/StackColoring.cpp | |
parent | e47feeb823ebf496e82db6a666d4c0fbaeb158b4 (diff) |
Stack Coloring: When searching for disjoint regions, do not compare intervals twice or to theirself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackColoring.cpp')
-rw-r--r-- | lib/CodeGen/StackColoring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StackColoring.cpp b/lib/CodeGen/StackColoring.cpp index 027096b810..45c9af21bb 100644 --- a/lib/CodeGen/StackColoring.cpp +++ b/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; |