diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-07-01 03:31:29 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-07-01 03:31:29 +0000 |
| commit | fe11caaa73782e3182a4d4840ee00336dab9490a (patch) | |
| tree | 600bb90751e28f1ccfe0c1fe81694b99b0852057 /lib/CodeGen | |
| parent | 1c8b97cbc03e0e1966d244a27b55e74bde35671e (diff) | |
| download | external_llvm-fe11caaa73782e3182a4d4840ee00336dab9490a.zip external_llvm-fe11caaa73782e3182a4d4840ee00336dab9490a.tar.gz external_llvm-fe11caaa73782e3182a4d4840ee00336dab9490a.tar.bz2 | |
Fix off by one error. I misunderstood the comment about killedAt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/RegisterCoalescer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp index 76edc08..f525ccd 100644 --- a/lib/CodeGen/RegisterCoalescer.cpp +++ b/lib/CodeGen/RegisterCoalescer.cpp @@ -1213,7 +1213,7 @@ static bool RegistersDefinedFromSameValue(LiveIntervals &li, // FIXME: If "B = X" kills X, we have to move the kill back to its // previous use. For now we just avoid the optimization in that case. - SlotIndex CopyIdx = li.getInstructionIndex(MI).getNextIndex().getDefIndex(); + SlotIndex CopyIdx = li.getInstructionIndex(MI).getDefIndex(); LiveInterval &SrcInt = li.getInterval(Src); if (SrcInt.killedAt(CopyIdx)) return false; |
