[llvm] [PGO] Add ProfileInjector and ProfileVerifier passes (PR #147388)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 11:52:07 PDT 2025
================
@@ -0,0 +1,21 @@
+; Test that prof-inject does not modify existing metadata (incl. "unknown")
+
+; RUN: opt -passes=prof-inject %s -S -o - | FileCheck %s
+; RUN: opt -passes=prof-verify %s -S --disable-output
+
+define void @foo(i32 %i) {
+ %c = icmp eq i32 %i, 0
+ br i1 %c, label %yes, label %no, !prof !0
----------------
mtrofin wrote:
actually, and perhaps more importantly[1], we also have stuff like `select` which isn't a terminator.
https://github.com/llvm/llvm-project/pull/147388
More information about the llvm-commits
mailing list