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
This commit is contained in:
Nadav Rotem 2012-09-10 12:47:38 +00:00
parent e47feeb823
commit a7de8a61df

View File

@ -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;