[llvm-branch-commits] [llvm] release/20.x: [LoongArch] Precommit test case to show bug in LoongArchISelDagToDag (PR #144296)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Jun 15 22:42:45 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-loongarch
Author: None (llvmbot)
<details>
<summary>Changes</summary>
Backport fcc82cf
Requested by: @<!-- -->leecheechen
---
Full diff: https://github.com/llvm/llvm-project/pull/144296.diff
1 Files Affected:
- (added) llvm/test/CodeGen/LoongArch/isel-optnone.ll (+13)
``````````diff
diff --git a/llvm/test/CodeGen/LoongArch/isel-optnone.ll b/llvm/test/CodeGen/LoongArch/isel-optnone.ll
new file mode 100644
index 0000000000000..d44f1405d0c18
--- /dev/null
+++ b/llvm/test/CodeGen/LoongArch/isel-optnone.ll
@@ -0,0 +1,13 @@
+; REQUIRES: asserts
+; RUN: llc %s -O0 -mtriple=loongarch64 -o /dev/null -debug-only=isel 2>&1 | FileCheck %s
+
+define void @fooOptnone() #0 {
+; CHECK: Changing optimization level for Function fooOptnone
+; CHECK: Before: -O2 ; After: -O0
+
+; CHECK: Restoring optimization level for Function fooOptnone
+; CHECK: Before: -O0 ; After: -O2
+ ret void
+}
+
+attributes #0 = { nounwind optnone noinline }
``````````
</details>
https://github.com/llvm/llvm-project/pull/144296
More information about the llvm-branch-commits
mailing list