Skip to content

Commit 5c94dd7

Browse files
authored
[X86][AMX] Avoid to construct invalid shape for checking, NFCI (llvm#105973)
1 parent 0916ae4 commit 5c94dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/VirtRegMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class TargetInstrInfo;
114114
bool isShapeMapEmpty() const { return Virt2ShapeMap.empty(); }
115115

116116
bool hasShape(Register virtReg) const {
117-
return getShape(virtReg).isValid();
117+
return Virt2ShapeMap.contains(virtReg);
118118
}
119119

120120
ShapeT getShape(Register virtReg) const {

0 commit comments

Comments
 (0)