diff options
| author | Andrew Trick <atrick@apple.com> | 2010-12-09 18:15:21 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2010-12-09 18:15:21 +0000 |
| commit | ccef09888c664b83c2da60174f01f15368a264f8 (patch) | |
| tree | 666b8cfa3ac4b9e2c15144d574f453672465b26f /llvm/lib/CodeGen/LiveIntervalUnion.cpp | |
| parent | d422723721d68feb63041bc81704962196c6349a (diff) | |
| download | bcm5719-llvm-ccef09888c664b83c2da60174f01f15368a264f8.tar.gz bcm5719-llvm-ccef09888c664b83c2da60174f01f15368a264f8.zip | |
Added register reassignment prototype to RAGreedy. It's a simple
heuristic to reshuffle register assignments when we can't find an
available reg.
llvm-svn: 121388
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalUnion.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalUnion.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.cpp b/llvm/lib/CodeGen/LiveIntervalUnion.cpp index 1fca034fdcb..d5c7bf08eb6 100644 --- a/llvm/lib/CodeGen/LiveIntervalUnion.cpp +++ b/llvm/lib/CodeGen/LiveIntervalUnion.cpp @@ -247,10 +247,13 @@ collectInterferingVRegs(unsigned MaxInterferingRegs) { if (!IR.LiveUnionI.value()->isSpillable()) SeenUnspillableVReg = true; - InterferingVRegs.push_back(IR.LiveUnionI.value()); if (InterferingVRegs.size() == MaxInterferingRegs) + // Leave SeenAllInterferences set to false to indicate that at least one + // interference exists beyond those we collected. return MaxInterferingRegs; + InterferingVRegs.push_back(IR.LiveUnionI.value()); + // Cache the most recent interfering vreg to bypass isSeenInterference. RecentInterferingVReg = IR.LiveUnionI.value(); ++IR.LiveUnionI; |

