Files
clang-p2996/llvm/test/CodeGen/LoongArch/isel-optnone.ll
Weining Lu 90a52f4942 [LoongArch] Pass OptLevel to LoongArchDAGToDAGISel correctly
Like many other targets did. And see RISCV for similar fix.

Fix https://github.com/llvm/llvm-project/issues/143239
2025-06-07 15:33:58 +08:00

11 lines
332 B
LLVM

; REQUIRES: asserts
; RUN: llc %s -O0 -mtriple=loongarch64 -o /dev/null -debug-only=isel 2>&1 | FileCheck %s
define void @fooOptnone() #0 {
; CHECK-NOT: Changing optimization level for Function fooOptnone
; CHECK-NOT: Restoring optimization level for Function fooOptnone
ret void
}
attributes #0 = { nounwind optnone noinline }