[SLP] Add cost model for `llvm.powi.*` intrinsics
[llvm-project.git] / llvm / test / Transforms / FunctionAttrs / optnone.ll
blob6d8a1d58f14803f27474d0714c537e5d1fcbf988
1 ; RUN: opt < %s -function-attrs -S | FileCheck %s
2 ; RUN: opt < %s -passes=function-attrs -S | FileCheck %s
4 @x = global i32 0
6 define void @test_opt(i8* %p) {
7 ; CHECK-LABEL: @test_opt
8 ; CHECK: (i8* nocapture readnone %p) #0 {
9   ret void
12 define void @test_optnone(i8* %p) noinline optnone {
13 ; CHECK-LABEL: @test_optnone
14 ; CHECK: (i8* %p) #1 {
15   ret void
18 declare i8 @strlen(i8*) noinline optnone
19 ; CHECK-LABEL: @strlen
20 ; CHECK: (i8*) #1
22 ; CHECK-LABEL: attributes #0
23 ; CHECK: = { mustprogress nofree norecurse nosync nounwind readnone willreturn }
24 ; CHECK-LABEL: attributes #1
25 ; CHECK: = { noinline optnone }