[Mlir-commits] [mlir] [mlir][dataflow]Fix dense backward dataflow intraprocedural hook (PR #76865)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jan 3 13:05:30 PST 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 7fbc1de9896029636dd572a692ee90ba88285943 ad47238a96f5d65b6584ac4fa369046421d41ab2 -- mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp b/mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp
index 33056ff7cd..d4b9134ab9 100644
--- a/mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp
+++ b/mlir/lib/Analysis/DataFlow/DenseAnalysis.cpp
@@ -286,10 +286,11 @@ void AbstractDenseBackwardDataFlowAnalysis::visitCallOperation(
 
   auto callable = dyn_cast_or_null<CallableOpInterface>(callee);
   // No region means the callee is only declared in this module.
-  // If that is the case or if the solver is not interprocedural, 
+  // If that is the case or if the solver is not interprocedural,
   // let the hook handle it.
   if (!getSolverConfig().isInterprocedural() ||
-      (callable && (!callable.getCallableRegion() || callable.getCallableRegion()->empty()))) {
+      (callable && (!callable.getCallableRegion() ||
+                    callable.getCallableRegion()->empty()))) {
     return visitCallControlFlowTransfer(
         call, CallControlFlowAction::ExternalCallee, after, before);
   }

``````````

</details>


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


More information about the Mlir-commits mailing list