[llvm] [AMDGPU] Fold uniform readfirstlane + cndmask (PR #70188)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 03:57:02 PDT 2023
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 9d35387811aaf150cabcae36146984732baa14c7 e57d6e85831c157687f7e5f3d5632972893ce5ba -- llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
index 62c420371f59..3b05db0f6aaf 100644
--- a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+++ b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@ -1416,7 +1416,7 @@ bool SIFoldOperands::tryFoldUniformReadFirstLaneCndMask(
return false;
MachineInstr *RFLSrc = MRI->getVRegDef(MI.getOperand(1).getReg());
- if(!RFLSrc)
+ if (!RFLSrc)
return false;
// We can also have the following pattern:
``````````
</details>
https://github.com/llvm/llvm-project/pull/70188
More information about the llvm-commits
mailing list