[llvm] [GVN] Permit load PRE to happen in more cases (PR #76063)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 20 07:25:28 PST 2023
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 36a073a5f45e0da3b84bd5284219d64586a97d5d 50e96813df15ca4323e8e1017af499fad1662d27 -- llvm/lib/Transforms/Scalar/GVN.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index 02d7315115..228a9c2c31 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -1626,7 +1626,7 @@ bool GVNPass::PerformLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
// all the preds that don't have an available Load and insert a new load into
// that one block.
if (CriticalEdgePredSplit.size() > 1)
- return false;
+ return false;
// Now we know where we will insert load. We must ensure that it is safe
// to speculatively execute the load at that points.
``````````
</details>
https://github.com/llvm/llvm-project/pull/76063
More information about the llvm-commits
mailing list