[llvm] [CodeGenPrepare] Resolve TODO: Treat disjoint-or as an add (PR #88667)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 14 10:00:13 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 b8d0cba14bcfc5c1c2f7a878ad9eaa12b6a590b6 3106364fe49a7f917bee26748a32daca2a6cf0b7 -- llvm/lib/CodeGen/CodeGenPrepare.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index f0f82b1b03..9022649fd7 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -4852,9 +4852,9 @@ bool AddressingModeMatcher::matchOperationAddr(User *AddrInst, unsigned Opcode,
return false;
}
case Instruction::Or:
- if (!cast<PossiblyDisjointInst>(AddrInst)->isDisjoint())
- break;
- [[fallthrough]];
+ if (!cast<PossiblyDisjointInst>(AddrInst)->isDisjoint())
+ break;
+ [[fallthrough]];
case Instruction::Add: {
// Check to see if we can merge in one operand, then the other. If so, we
// win.
``````````
</details>
https://github.com/llvm/llvm-project/pull/88667
More information about the llvm-commits
mailing list