[compiler-rt] [llvm] [PGO] Add option to always instrumenting loop entries (PR #116789)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 10:43:52 PST 2024


================
@@ -0,0 +1,78 @@
+; RUN: opt %s -passes=pgo-instr-gen -pgo-instrument-loop-entries=false -S | FileCheck %s --check-prefixes=GEN,NOTLOOPENTRIES
+; RUN: llvm-profdata merge %S/Inputs/loop3.proftext -o %t.profdata
----------------
ellishg wrote:

Also, it might be cleaner to split this into two separate tests: `PGOProfile/loop-entry-gen.ll` and `PGOProfile/loop-entry-use.ll`.

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


More information about the llvm-commits mailing list