mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127561 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7792e980c4
commit
5522e8a936
@ -163,7 +163,7 @@ public:
|
||||
bool CheckedFirstInterference;
|
||||
bool SeenAllInterferences;
|
||||
bool SeenUnspillableVReg;
|
||||
unsigned Tag;
|
||||
unsigned Tag, VTag;
|
||||
|
||||
public:
|
||||
Query(): LiveUnion(), VirtReg() {}
|
||||
@ -181,11 +181,12 @@ public:
|
||||
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 @@ public:
|
||||
LiveUnion = LIU;
|
||||
VirtReg = VReg;
|
||||
Tag = LIU->getTag();
|
||||
VTag = VReg->reg;
|
||||
}
|
||||
|
||||
LiveInterval &virtReg() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user