[llvm] [PGO] Supporting code for always instrumenting loop entries (PR #116789)

Christian Ulmann via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 04:10:30 PST 2024


================
@@ -0,0 +1,70 @@
+; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-loop-entries=false -S | FileCheck %s --check-prefixes=GEN,NOTLOOPENTRIES
+; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-loop-entries=true -S | FileCheck %s --check-prefixes=GEN,LOOPENTRIES
+; RUN: opt < %s -passes=pgo-instr-gen -pgo-instrument-entry=true -S | FileCheck %s --check-prefixes=GEN,FUNCTIONENTRY
+
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
----------------
Dinistro wrote:

Nit: Are you sure that this is necessary?

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


More information about the llvm-commits mailing list