[llvm-commits] [llvm] r127561 - /llvm/trunk/lib/CodeGen/LiveIntervalUnion.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Sat Mar 12 17:29:32 PST 2011
Author: stoklund
Date: Sat Mar 12 19:29:32 2011
New Revision: 127561
URL: http://llvm.org/viewvc/llvm-project?rev=127561&view=rev
Log:
Now that we are deleting unused live intervals during allocation, pointers may be reused.
Use the virtual register number as a cache tag instead. They are not reused.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalUnion.h
Modified: llvm/trunk/lib/CodeGen/LiveIntervalUnion.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalUnion.h?rev=127561&r1=127560&r2=127561&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalUnion.h (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalUnion.h Sat Mar 12 19:29:32 2011
@@ -163,7 +163,7 @@
bool CheckedFirstInterference;
bool SeenAllInterferences;
bool SeenUnspillableVReg;
- unsigned Tag;
+ unsigned Tag, VTag;
public:
Query(): LiveUnion(), VirtReg() {}
@@ -181,11 +181,12 @@
SeenAllInterferences = false;
SeenUnspillableVReg = false;
Tag = 0;
+ VTag = 0;
}
void init(LiveInterval *VReg, LiveIntervalUnion *LIU) {
assert(VReg && LIU && "Invalid arguments");
- if (VirtReg == VReg && LiveUnion == LIU && !LIU->changedSince(Tag)) {
+ if (VReg->reg == VTag && LiveUnion == LIU && !LIU->changedSince(Tag)) {
// Retain cached results, e.g. firstInterference.
return;
}
@@ -193,6 +194,7 @@
LiveUnion = LIU;
VirtReg = VReg;
Tag = LIU->getTag();
+ VTag = VReg->reg;
}
LiveInterval &virtReg() const {
More information about the llvm-commits
mailing list