[llvm] [PredicateInfo] Clean up DFS sorting (NFC) (PR #144943)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 19 11:50:54 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/Utils/PredicateInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/PredicateInfo.cpp b/llvm/lib/Transforms/Utils/PredicateInfo.cpp
index 2e6eb4295..a94fa672f 100644
--- a/llvm/lib/Transforms/Utils/PredicateInfo.cpp
+++ b/llvm/lib/Transforms/Utils/PredicateInfo.cpp
@@ -182,8 +182,7 @@ struct ValueDFS_Compare {
// For the purpose of ordering, we pretend the def is right after the
// assume, because that is where we will insert the info.
- assert(VD.PInfo &&
- "No def, no use, and no predicateinfo should not occur");
+ assert(VD.PInfo && "No def, no use, and no predicateinfo should not occur");
assert(isa<PredicateAssume>(VD.PInfo) &&
"Middle of block should only occur for assumes");
return cast<PredicateAssume>(VD.PInfo)->AssumeInst->getNextNode();
``````````
</details>
https://github.com/llvm/llvm-project/pull/144943
More information about the llvm-commits
mailing list