Skip to content

Commit 2f48178

Browse files
committed
[VirtRegMap] Use Register for Virt2ShapeMap key. NFC
1 parent 508e734 commit 2f48178

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/CodeGen/VirtRegMap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class TargetInstrInfo;
6363

6464
/// Virt2ShapeMap - For X86 AMX register whose register is bound shape
6565
/// information.
66-
DenseMap<unsigned, ShapeT> Virt2ShapeMap;
66+
DenseMap<Register, ShapeT> Virt2ShapeMap;
6767

6868
/// createSpillSlot - Allocate a spill slot for RC from MFI.
6969
unsigned createSpillSlot(const TargetRegisterClass *RC);
@@ -123,7 +123,7 @@ class TargetInstrInfo;
123123
}
124124

125125
void assignVirt2Shape(Register virtReg, ShapeT shape) {
126-
Virt2ShapeMap[virtReg.id()] = shape;
126+
Virt2ShapeMap[virtReg] = shape;
127127
}
128128

129129
/// clears the specified virtual register's, physical
@@ -153,7 +153,7 @@ class TargetInstrInfo;
153153
void setIsSplitFromReg(Register virtReg, Register SReg) {
154154
Virt2SplitMap[virtReg.id()] = SReg;
155155
if (hasShape(SReg)) {
156-
Virt2ShapeMap[virtReg.id()] = getShape(SReg);
156+
Virt2ShapeMap[virtReg] = getShape(SReg);
157157
}
158158
}
159159

0 commit comments

Comments
 (0)