[flang-commits] [flang] [mlir] [flang][OpenMP] Fix reduction init region block management (PR #122079)
via flang-commits
flang-commits at lists.llvm.org
Wed Jan 8 01:26:38 PST 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 32bc029be6265838833623fdd88cc665d5658dc7 8be8cec9226a90a63409b118e7e8b7aaf0c7e5f4 --extensions cpp -- mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
index c837162d4c..9fba602d89 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -1090,8 +1090,7 @@ initReductionVars(OP op, ArrayRef<BlockArgument> reductionArgs,
builder.GetInsertBlock()->getTerminator() == nullptr)
builder.SetInsertPoint(builder.GetInsertBlock());
else
- builder.SetInsertPoint(
- builder.GetInsertBlock()->getTerminator());
+ builder.SetInsertPoint(builder.GetInsertBlock()->getTerminator());
if (isByRef[i]) {
if (!reductionDecls[i].getAllocRegion().empty())
``````````
</details>
https://github.com/llvm/llvm-project/pull/122079
More information about the flang-commits
mailing list