mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Add a forgotten initializer for CheckedFirstInterference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121410 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e7e4b51afc
commit
a0382c6290
@ -168,6 +168,8 @@ LiveIntervalUnion::Query::firstInterference() {
|
||||
IR.VirtRegI = VirtReg->end();
|
||||
}
|
||||
findIntersection(FirstInterference);
|
||||
assert((IR.VirtRegI == VirtReg->end() || IR.LiveUnionI.valid())
|
||||
&& "Uninitialized iterator");
|
||||
return FirstInterference;
|
||||
}
|
||||
|
||||
|
@ -145,8 +145,8 @@ public:
|
||||
Query(): LiveUnion(), VirtReg() {}
|
||||
|
||||
Query(LiveInterval *VReg, LiveIntervalUnion *LIU):
|
||||
LiveUnion(LIU), VirtReg(VReg), SeenAllInterferences(false),
|
||||
SeenUnspillableVReg(false)
|
||||
LiveUnion(LIU), VirtReg(VReg), CheckedFirstInterference(false),
|
||||
SeenAllInterferences(false), SeenUnspillableVReg(false)
|
||||
{}
|
||||
|
||||
void clear() {
|
||||
@ -159,6 +159,7 @@ public:
|
||||
}
|
||||
|
||||
void init(LiveInterval *VReg, LiveIntervalUnion *LIU) {
|
||||
assert(VReg && LIU && "Invalid arguments");
|
||||
if (VirtReg == VReg && LiveUnion == LIU) {
|
||||
// Retain cached results, e.g. firstInterference.
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user