[llvm] [GVNSink] Fix non-determinisms by using Depth-First ordering (PR #90995)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 4 06:50:28 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 2f58b9aae2d6f1aeaecd98766ef31cebc0dcbb5b 87be0cd27fafddb1294c7fc263282e49232e2325 -- llvm/lib/Transforms/Scalar/GVNSink.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/GVNSink.cpp b/llvm/lib/Transforms/Scalar/GVNSink.cpp
index add09c506f..c6613f427d 100644
--- a/llvm/lib/Transforms/Scalar/GVNSink.cpp
+++ b/llvm/lib/Transforms/Scalar/GVNSink.cpp
@@ -264,7 +264,7 @@ public:
};
assert(llvm::is_sorted(Blocks, DFSOrder));
int C = 0;
- llvm::for_each(Values, [&C, this](const Value* V) {
+ llvm::for_each(Values, [&C, this](const Value *V) {
const Instruction *I = cast<Instruction>(V);
assert(I->getParent() == this->Blocks[C++]);
});
``````````
</details>
https://github.com/llvm/llvm-project/pull/90995
More information about the llvm-commits
mailing list