[llvm] [nfc][InstCombine]Find PHI incoming block by operand number (PR #93249)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 15:14:58 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 66b76faffb211b3cb2d58e3ab9401e6396447de9 28f97a98967c65418ae9e9a87b5a12759732b578 -- llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index b0361db170..cda26bafcc 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -5017,7 +5017,7 @@ bool InstCombinerImpl::run() {
           // Bail out if we have uses in different blocks. We don't do any
           // sophisticated analysis (i.e finding NearestCommonDominator of
           // these use blocks).
-          BasicBlock* IncomingBlock = PN->getIncomingBlock(Num);
+          BasicBlock *IncomingBlock = PN->getIncomingBlock(Num);
           if (UserParent && UserParent != IncomingBlock)
             return std::nullopt;
           UserParent = PN->getIncomingBlock(Num);

``````````

</details>


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


More information about the llvm-commits mailing list