[llvm] [AMDGPU] Constant fold FMAD_FTZ (PR #69443)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 05:45:45 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 0dca56603b4e13232dfb1f1b80e01604fcf36314 6547c592656ee366c08bc5a1888ce28e3b5eebb1 -- llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
index 987498a0069f..adf4e0139e03 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
@@ -5054,7 +5054,7 @@ SDValue AMDGPUTargetLowering::PerformDAGCombine(SDNode *N,
     ConstantFPSDNode *N2CFP = dyn_cast<ConstantFPSDNode>(N2);
     if (N0CFP && N1CFP && N2CFP) {
       const auto FTZ = [](const APFloat &V) {
-        if(V.isDenormal()) {
+        if (V.isDenormal()) {
           APFloat Zero(V.getSemantics(), 0);
           return V.isNegative() ? -Zero : Zero;
         }

``````````

</details>


https://github.com/llvm/llvm-project/pull/69443


More information about the llvm-commits mailing list