
Like many other targets did. And see RISCV for similar fix. Fix https://github.com/llvm/llvm-project/issues/143239
11 lines
332 B
LLVM
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 }
|