[MiSched] Fix a logic error in tryPressure()
authorHal Finkel <hfinkel@anl.gov>
Fri, 10 Oct 2014 17:06:20 +0000 (17:06 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 10 Oct 2014 17:06:20 +0000 (17:06 +0000)
commitd3aa46a1bc5d195f8399d109a13353378516138b
treeb71819be4812f3b1dd1e9df6386e249e4f9d7b11
parentf6e11eacdd775f2363287c7b779edc4fcdf54ad3
[MiSched] Fix a logic error in tryPressure()

Fixes a logic error in the MachineScheduler found by Steve Montgomery (and
confirmed by Andy). This has gone unfixed for months because the fix has been
found to introduce some small performance regressions. However, Andy has
recommended that, at this point, we fix this to avoid further dependence on the
incorrect behavior (and then follow-up separately on any regressions), and I
agree.

Fixes PR18883.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219512 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineScheduler.cpp
test/CodeGen/X86/misched-matmul.ll
test/CodeGen/X86/ragreedy-last-chance-recoloring.ll