bool CheckedFirstInterference;
bool SeenAllInterferences;
bool SeenUnspillableVReg;
- unsigned Tag;
+ unsigned Tag, VTag;
public:
Query(): LiveUnion(), VirtReg() {}
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;
}
LiveUnion = LIU;
VirtReg = VReg;
Tag = LIU->getTag();
+ VTag = VReg->reg;
}
LiveInterval &virtReg() const {