Skip to content

Commit

Permalink
[X86][AMX] Avoid to construct invalid shape for checking, NFCI (llvm#…
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebewang authored and dmpolukhin committed Sep 2, 2024
1 parent d6a25b7 commit 6514209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/CodeGen/VirtRegMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class TargetInstrInfo;
bool isShapeMapEmpty() const { return Virt2ShapeMap.empty(); }

bool hasShape(Register virtReg) const {
return getShape(virtReg).isValid();
return Virt2ShapeMap.contains(virtReg);
}

ShapeT getShape(Register virtReg) const {
Expand Down

0 comments on commit 6514209

Please sign in to comment.