[llvm] [CSSPGO] Don't let pseudo probes block early-exit vectorization (PR #220149)
Henry Jiang via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 5 00:53:59 PDT 2026
================
@@ -0,0 +1,83 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -S < %s -p loop-vectorize -force-vector-width=4 | FileCheck %s
+
+declare void @init_mem(ptr, i64);
+
+;; llvm.pseudoprobe is modelled as accessing inaccessible memory, so it reports
+;; may-read and may-write, but it carries no real memory dependence. A read-only
+;; early exit loop must vectorize whether or not it has been instrumented for
+;; sample profiling.
+define i64 @early_exit_with_pseudo_probe() {
----------------
mustartt wrote:
This loop does not contain an early exit?
https://github.com/llvm/llvm-project/pull/220149
More information about the llvm-commits
mailing list