[llvm] [X86][AMX] Combine constant zero vector and AMX cast to tilezero (PR #92384)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 04:24:32 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 46bc54f4e688870da8356a9b85257ffb12d47e1f 0a33db0fae8db4f3f430b26909583d8e2188f2df -- llvm/lib/Target/X86/X86LowerAMXType.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86LowerAMXType.cpp b/llvm/lib/Target/X86/X86LowerAMXType.cpp
index 539a9b2e4b..b30f24d79a 100644
--- a/llvm/lib/Target/X86/X86LowerAMXType.cpp
+++ b/llvm/lib/Target/X86/X86LowerAMXType.cpp
@@ -989,7 +989,8 @@ bool X86LowerAMXCast::combineLoadCast(IntrinsicInst *Cast, LoadInst *LD) {
return EraseLoad;
}
-// %19 = tail call x86_amx @llvm.x86.cast.vector.to.tile.v256i32(<256 x i32> zeroinitializer)
+// %19 = tail call x86_amx @llvm.x86.cast.vector.to.tile.v256i32(<256 x i32>
+// zeroinitializer)
// -->
// %19 = tail call x86_amx @llvm.x86.tilezero.internal(i16 %row, i16 %col)
bool X86LowerAMXCast::combineTilezero(IntrinsicInst *Cast) {
@@ -1033,9 +1034,11 @@ bool X86LowerAMXCast::combineLdSt(SmallVectorImpl<Instruction *> &Casts) {
for (auto *Store : DeadStores)
Store->eraseFromParent();
} else { // x86_cast_vector_to_tile
- // %19 = tail call x86_amx @llvm.x86.cast.vector.to.tile.v256i32(<256 x i32> zeroinitializer)
+ // %19 = tail call x86_amx @llvm.x86.cast.vector.to.tile.v256i32(<256 x
+ // i32> zeroinitializer)
// -->
- // %19 = tail call x86_amx @llvm.x86.tilezero.internal(i16 %row, i16 %col)
+ // %19 = tail call x86_amx @llvm.x86.tilezero.internal(i16 %row, i16
+ // %col)
if (dyn_cast<ConstantAggregateZero>(Cast->getOperand(0))) {
Change |= combineTilezero(cast<IntrinsicInst>(Cast));
continue;
``````````
</details>
https://github.com/llvm/llvm-project/pull/92384
More information about the llvm-commits
mailing list