mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 05:41:40 +00:00
6bc19df503
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. llvm-svn: 156913
9 lines
391 B
LLVM
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
|