[llvm] [InstrProf] Do not emit metadata for zero values with zero counts (PR #199380)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Sat May 23 17:47:34 PDT 2026


================
@@ -0,0 +1,14 @@
+; RUN: llvm-profdata merge %S/Inputs/indirect-call-vp-zeros.ll -o %t.profdata
+; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S
+
+;; Check that if we have a profile with VP metadat that has only zero values
+;; with zero counts, we do not emit invalid VP metadata.
+
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
----------------
snehasish wrote:

Can we skip the data layout and triple? 

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


More information about the llvm-commits mailing list