[llvm] [SDAG] Read-only intrinsics must have WillReturn attribute to be treated as loads (PR #99999)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 15:24:49 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 9effefbae8d96006a4dd29bb9ab8532fd408559d 7b43cc56c7857bf88d5835e0c54fcc75e1caac26 --extensions cpp -- llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 986841302e..59860d063d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -5228,7 +5228,8 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I,
bool OnlyLoad = HasChain && F->onlyReadsMemory() && F->willReturn();
bool PrevOnlyLoad = HasChain && F->onlyReadsMemory();
- assert((!PrevOnlyLoad || F->willReturn()) && "Intrinsic treated as `OnlyLoad` despite no WillReturn");
+ assert((!PrevOnlyLoad || F->willReturn()) &&
+ "Intrinsic treated as `OnlyLoad` despite no WillReturn");
// Build the operand list.
SmallVector<SDValue, 8> Ops;
``````````
</details>
https://github.com/llvm/llvm-project/pull/99999
More information about the llvm-commits
mailing list