mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
I am doing this separately from the actual change to eliminate the option to make it easier to review.
17 lines
569 B
Plaintext
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
|