[llvm-branch-commits] [llvm] InstCombine: Infer nnan and ninf flags on log intrinsics (PR #177767)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jan 24 06:23:42 PST 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/Transforms/InstCombine/InstCombineSimplifyDemanded.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/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
index fa56c7cd6..6a4a89aa4 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
@@ -2958,7 +2958,8 @@ Value *InstCombinerImpl::SimplifyDemandedUseFPClass(Instruction *I,
Known = KnownFPClass::log(KnownSrc, Mode);
Known.knownNot(~DemandedMask);
- return simplifyDemandedFPClassResult(CI, FMF, DemandedMask, Known, KnownSrc);
+ return simplifyDemandedFPClassResult(CI, FMF, DemandedMask, Known,
+ KnownSrc);
}
case Intrinsic::sqrt: {
FPClassTest DemandedSrcMask =
``````````
</details>
https://github.com/llvm/llvm-project/pull/177767
More information about the llvm-branch-commits
mailing list