Files
swift-mirror/test/IRGen/optimize_for_size.sil
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

17 lines
569 B
Plaintext

// RUN: %target-swift-frontend -Osize -emit-ir %s | %FileCheck %s
// RUN: %target-swift-frontend -O -emit-ir %s | %FileCheck %s --check-prefix=O
sil_stage canonical
import Builtin
// CHECK-LABEL: define{{.*}} swiftcc void @optimize_for_size_attribute({{.*}}) #0 {
// O-LABEL: define{{.*}} swiftcc void @optimize_for_size_attribute({{.*}}) #0 {
sil @optimize_for_size_attribute : $@convention(thin) (Builtin.Int32) -> () {
bb0(%0 : $Builtin.Int32):
%1 = tuple ()
return %1 : $()
}
// O-NOT: attributes #0 = {{{.*}}optsize
// CHECK: attributes #0 = {{{.*}}minsize