Files
llvm-project/llvm/test/Other/opt-Os-Oz.ll
Nikita Popov 86b9775612 [Passes] Remove Os and Oz optimization pipelines (#191363)
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.
2026-04-22 09:34:35 +00:00

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.