[flang-commits] [flang] [flang][stack-arrays] Extend pass to work on declare ops and within omp regions (PR #98810)
via flang-commits
flang-commits at lists.llvm.org
Tue Jul 16 05:18:44 PDT 2024
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 062844615db5e141da118c1ad780bf102537f40a 9d642d8476ac9a3f257408c5e79b37fda02a681a --extensions cpp -- flang/lib/Optimizer/Transforms/StackArrays.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Optimizer/Transforms/StackArrays.cpp b/flang/lib/Optimizer/Transforms/StackArrays.cpp
index 5556be85b4..8d43d9fed1 100644
--- a/flang/lib/Optimizer/Transforms/StackArrays.cpp
+++ b/flang/lib/Optimizer/Transforms/StackArrays.cpp
@@ -661,8 +661,8 @@ AllocMemConversion::findAllocaLoopInsertionPoint(fir::AllocMemOp &oldAlloc) {
}
}
- if (mlir::isa<fir::FreeMemOp>(user))
- freeOps.push_back(user);
+ if (mlir::isa<fir::FreeMemOp>(user))
+ freeOps.push_back(user);
}
assert(freeOps.size() && "DFA should only return freed memory");
``````````
</details>
https://github.com/llvm/llvm-project/pull/98810
More information about the flang-commits
mailing list