[llvm] d434097 - X86: Avoid using getNumUses (#136348)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 19 00:26:19 PDT 2025
Author: Matt Arsenault
Date: 2025-04-19T09:26:15+02:00
New Revision: d4340978d153fc7ea6445da793320b4104062b12
URL: https://github.com/llvm/llvm-project/commit/d4340978d153fc7ea6445da793320b4104062b12
DIFF: https://github.com/llvm/llvm-project/commit/d4340978d153fc7ea6445da793320b4104062b12.diff
LOG: X86: Avoid using getNumUses (#136348)
Added:
Modified:
llvm/lib/Target/X86/X86LowerAMXType.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86LowerAMXType.cpp b/llvm/lib/Target/X86/X86LowerAMXType.cpp
index 54f5977fe76eb..77253835b0590 100644
--- a/llvm/lib/Target/X86/X86LowerAMXType.cpp
+++ b/llvm/lib/Target/X86/X86LowerAMXType.cpp
@@ -1084,7 +1084,7 @@ bool X86LowerAMXCast::combineCastStore(IntrinsicInst *Cast, StoreInst *ST) {
assert(Tile->getType()->isX86_AMXTy() && "Not Tile Operand!");
// TODO: Specially handle the multi-use case.
- if (Tile->getNumUses() != 1)
+ if (!Tile->hasOneUse())
return false;
// We don't fetch shape from tilestore, we only get shape from tiledef,
More information about the llvm-commits
mailing list