These should use O2 with the optsize or minsize attributes instead. This enforces that there is no divergence between pipeline-level Os/Oz and function-level Os/Oz at an architectural level. For the purpose of testing IR that does not have optsize/minsize itself, it's possible to use `-force-attribute=optsize` etc.
6 lines
363 B
LLVM
6 lines
363 B
LLVM
; RUN: not opt -Os < %s -S 2>&1 | FileCheck %s --check-prefix=Os
|
|
; RUN: not opt -Oz < %s -S 2>&1 | FileCheck %s --check-prefix=Oz
|
|
|
|
; Os: The optimization level "Os" is no longer supported. Use O2 in conjunction with the optsize attribute instead.
|
|
; Oz: The optimization level "Oz" is no longer supported. Use O2 in conjunction with the minsize attribute instead.
|