[llvm] Add constant-folding for unary NVVM intrinsics (PR #141233)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 01:14:14 PDT 2025
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 HEAD~1 HEAD --extensions h,cpp -- llvm/include/llvm/IR/NVVMIntrinsicUtils.h llvm/lib/Analysis/ConstantFolding.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index 4e97690e2..5d83b0808 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -2691,8 +2691,10 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
case Intrinsic::nvvm_fabs_ftz:
case Intrinsic::nvvm_fabs:
- return ConstantFoldFP(fabs, APF, Ty,
- nvvm::GetNVVMDenromMode(nvvm::UnaryMathIntrinsicShouldFTZ(IntrinsicID)));
+ return ConstantFoldFP(
+ fabs, APF, Ty,
+ nvvm::GetNVVMDenromMode(
+ nvvm::UnaryMathIntrinsicShouldFTZ(IntrinsicID)));
case Intrinsic::nvvm_floor_ftz_f:
case Intrinsic::nvvm_floor_f:
``````````
</details>
https://github.com/llvm/llvm-project/pull/141233
More information about the llvm-commits
mailing list