Skip to content

Conversation

topperc
Copy link
Collaborator

@topperc topperc commented Sep 5, 2025

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Sep 5, 2025

@llvm/pr-subscribers-backend-risc-v

Author: Craig Topper (topperc)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/157011.diff

1 Files Affected:

  • (added) llvm/test/CodeGen/RISCV/print-pipeline-passes.ll (+12)
diff --git a/llvm/test/CodeGen/RISCV/print-pipeline-passes.ll b/llvm/test/CodeGen/RISCV/print-pipeline-passes.ll
new file mode 100644
index 0000000000000..e1125a60a1217
--- /dev/null
+++ b/llvm/test/CodeGen/RISCV/print-pipeline-passes.ll
@@ -0,0 +1,12 @@
+; RUN: opt -mtriple=riscv32 -S -passes='default<O0>' -print-pipeline-passes < %s | FileCheck --check-prefix=O0 %s
+; RUN: opt -mtriple=riscv64 -S -passes='default<O0>' -print-pipeline-passes < %s | FileCheck --check-prefix=O0 %s
+; RUN: opt -mtriple=riscv32 -S -passes='default<O2>' -print-pipeline-passes < %s | FileCheck %s
+; RUN: opt -mtriple=riscv64 -S -passes='default<O2>' -print-pipeline-passes < %s | FileCheck %s
+
+; CHECK: loop-idiom-vectorize
+; O0-NOT: loop-idiom-vectorize
+
+define void @foo() {
+entry:
+  ret void
+}

@topperc topperc merged commit 85dbe18 into llvm:main Sep 5, 2025
11 checks passed
@topperc topperc deleted the pr/print-pipeline-passes branch September 5, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants