[llvm] [KnownFPClass] Fix KnownFPClass::frexp subnormal mode handling (PR #219114)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 22:26:42 PDT 2026


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 origin/main HEAD --extensions cpp -- llvm/lib/Analysis/ValueTracking.cpp llvm/lib/CodeGen/GlobalISel/GISelValueTracking.cpp llvm/lib/Support/KnownFPClass.cpp llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp llvm/unittests/CodeGen/GlobalISel/KnownFPClassTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/GlobalISel/GISelValueTracking.cpp b/llvm/lib/CodeGen/GlobalISel/GISelValueTracking.cpp
index 578614c3b..a866a8a95 100644
--- a/llvm/lib/CodeGen/GlobalISel/GISelValueTracking.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/GISelValueTracking.cpp
@@ -1947,8 +1947,7 @@ void GISelValueTracking::computeKnownFPClass(Register R,
       InterestedSrcs |= fcNegSubnormal;
 
     KnownFPClass KnownSrc;
-    computeKnownFPClass(Src, DemandedElts, InterestedSrcs, KnownSrc,
-                        Depth + 1);
+    computeKnownFPClass(Src, DemandedElts, InterestedSrcs, KnownSrc, Depth + 1);
     DenormalMode Mode =
         MF->getDenormalMode(getFltSemanticForLLT(DstTy.getScalarType()));
     Known = KnownFPClass::frexp_mant(KnownSrc, Mode);

``````````

</details>


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


More information about the llvm-commits mailing list