Skip to content

Commit d434097

Browse files
authored
X86: Avoid using getNumUses (#136348)
1 parent 1c4ff51 commit d434097

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86LowerAMXType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ bool X86LowerAMXCast::combineCastStore(IntrinsicInst *Cast, StoreInst *ST) {
10841084
assert(Tile->getType()->isX86_AMXTy() && "Not Tile Operand!");
10851085

10861086
// TODO: Specially handle the multi-use case.
1087-
if (Tile->getNumUses() != 1)
1087+
if (!Tile->hasOneUse())
10881088
return false;
10891089

10901090
// We don't fetch shape from tilestore, we only get shape from tiledef,

0 commit comments

Comments
 (0)