[llvm] [PredicateInfo] Drop redundant PredicateInfo annotation (PR #165434)
Kunqiu Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 28 09:51:07 PDT 2025
https://github.com/Camsyn created https://github.com/llvm/llvm-project/pull/165434
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.
>From 2a81b6ad81be1525e9482318f9ea60ea707148b8 Mon Sep 17 00:00:00 2001
From: Camsyn <camsyn at foxmail.com>
Date: Wed, 29 Oct 2025 00:46:28 +0800
Subject: [PATCH] Drop redundant PredicateInfo annotation
---
llvm/lib/Transforms/Utils/PredicateInfo.cpp | 1 -
1 file changed, 1 deletion(-)
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: [";
More information about the llvm-commits
mailing list