[llvm] [SimplifyCFG] Simplify switch instruction that has duplicate arms (PR #114262)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 09:52:33 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 6f973fd4ab18ff58689e83383190ed4767c2a7dd eb7d34d5ae4e20824d9193b21f01781c300d21fe --extensions cpp -- llvm/lib/Transforms/Utils/SimplifyCFG.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index f44364ea50..eb0c2346e0 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -7586,7 +7586,7 @@ bool SimplifyCFGOpt::simplifySwitch(SwitchInst *SI, IRBuilder<> &Builder) {
     return requestResimplify();
 
   if (simplifyDuplicateSwitchArms(SI))
-     return requestResimplify();
+    return requestResimplify();
 
   return false;
 }

``````````

</details>


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


More information about the llvm-commits mailing list