[llvm] [SelectionDAG] Fix D66309: Allow unordered atomics to have some optimizations done for them (PR #85589)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 17 19:25:35 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 843a978b6f387e807a44c8861e5c3728a380098b 0b8b87c56afb5729b92fab6cfcb15820533be160 -- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 42b97a104e..38e5d4afde 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -18518,7 +18518,8 @@ SDValue DAGCombiner::ForwardStoreValueToDirectLoad(LoadSDNode *LD) {
int64_t Offset;
StoreSDNode *ST = getUniqueStoreFeeding(LD, Offset);
- if (!ST || !ST->isUnordered() || ST->getAddressSpace() != LD->getAddressSpace())
+ if (!ST || !ST->isUnordered() ||
+ ST->getAddressSpace() != LD->getAddressSpace())
return SDValue();
EVT LDType = LD->getValueType(0);
``````````
</details>
https://github.com/llvm/llvm-project/pull/85589
More information about the llvm-commits
mailing list