llvm-6502/test/Other/optimize-options.ll
Chandler Carruth 8bc3434e68 Teach the 'opt' tool about '-Os' and '-Oz', corresponding to the Clang
options, to enable easier testing of the innards of LLVM that are
enabled by such optimization strategies.

Note that this doesn't provide the (much needed) function attribute
support for -Oz (as opposed to -Os), but still seems like a positive
step to better test the logic that Clang currently relies on.

Patch by Patrik Hägglund.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156913 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-16 08:32:49 +00:00

9 lines
391 B
LLVM

;RUN: opt -S -O1 -debug-pass=Arguments |& FileCheck %s
;RUN: opt -S -O2 -debug-pass=Arguments |& FileCheck %s
;RUN: opt -S -Os -debug-pass=Arguments |& FileCheck %s
;RUN: opt -S -Oz -debug-pass=Arguments |& FileCheck %s
;RUN: opt -S -O3 -debug-pass=Arguments |& FileCheck %s
; Just check that we get a non-empty set of passes for each -O opton.
;CHECK: Pass Arguments: {{.*}} -print-module