[llvm] [PredicateInfo] Drop redundant PredicateInfo annotation (PR #165434)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 28 09:51:48 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: Kunqiu Chen (Camsyn)

<details>
<summary>Changes</summary>

See https://github.com/llvm/llvm-project/pull/165419#discussion_r2470208670 for details.

The extra annotation `"; Has predicate info"` does not provide any extra information and might poison the UTC-generated checks introduced by #<!-- -->165419.

---
Full diff: https://github.com/llvm/llvm-project/pull/165434.diff


1 Files Affected:

- (modified) llvm/lib/Transforms/Utils/PredicateInfo.cpp (-1) 


``````````diff
diff --git a/llvm/lib/Transforms/Utils/PredicateInfo.cpp b/llvm/lib/Transforms/Utils/PredicateInfo.cpp
index a9ab3b3144829..27fed7340411b 100644
--- a/llvm/lib/Transforms/Utils/PredicateInfo.cpp
+++ b/llvm/lib/Transforms/Utils/PredicateInfo.cpp
@@ -809,7 +809,6 @@ class PredicateInfoAnnotatedWriter : public AssemblyAnnotationWriter {
   void emitInstructionAnnot(const Instruction *I,
                             formatted_raw_ostream &OS) override {
     if (const auto *PI = PredInfo->getPredicateInfoFor(I)) {
-      OS << "; Has predicate info\n";
       if (const auto *PB = dyn_cast<PredicateBranch>(PI)) {
         OS << "; branch predicate info { TrueEdge: " << PB->TrueEdge
            << " Comparison:" << *PB->Condition << " Edge: [";

``````````

</details>


https://github.com/llvm/llvm-project/pull/165434


More information about the llvm-commits mailing list