forked from OSchip/llvm-project
parent
ef8cf6d421
commit
2e83c4c4c3
|
|
@ -11,17 +11,17 @@ void test() {
|
||||||
f0(17);
|
f0(17);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int __attribute__((always_inline)) f1(int x) {
|
inline int __attribute__((always_inline)) f1(int x) {
|
||||||
int blarg = 0;
|
int blarg = 0;
|
||||||
for (int i = 0; i < x; ++i)
|
for (int i = 0; i < x; ++i)
|
||||||
blarg = blarg + x * i;
|
blarg = blarg + x * i;
|
||||||
return blarg;
|
return blarg;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK: @test1
|
// CHECK: @test1
|
||||||
int test1(int x) {
|
int test1(int x) {
|
||||||
// CHECK: br i1
|
// CHECK: br i1
|
||||||
// CHECK-NOT: call
|
// CHECK-NOT: call {{.*}} @f1
|
||||||
// CHECK: ret i32
|
// CHECK: ret i32
|
||||||
return f1(x);
|
return f1(x);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue