[llvm] [AMDGPU] Prevent SDWA 'preserve' transformation for instructions in different basic blocks. (PR #82406)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 11:25:08 PST 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 807ed697beb438407905f3c728ed8c34ccc2d0d2 95d056331ed0a0d655afaae124822fe4b0a05490 -- llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp b/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
index 739ee17464..eb65730683 100644
--- a/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
+++ b/llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
@@ -818,8 +818,8 @@ SIPeepholeSDWA::matchSDWAOperand(MachineInstr &MI) {
MachineOperand *OrDst = TII->getNamedOperand(MI, AMDGPU::OpName::vdst);
assert(OrDst && OrDst->isReg());
- return std::make_unique<SDWADstPreserveOperand>(
- OrDst, OrSDWADef, OrOtherDef, DstSel);
+ return std::make_unique<SDWADstPreserveOperand>(OrDst, OrSDWADef,
+ OrOtherDef, DstSel);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/82406
More information about the llvm-commits
mailing list