search for: tobeinlined

Displaying 3 results from an estimated 3 matches for "tobeinlined".

2017 Jun 24
1
musttail & alwaysinline interaction
Consider this program: @globalSideEffect = global i32 0 define void @tobeinlined() #0 { entry: store i32 3, i32* @globalSideEffect, align 4 musttail call fastcc void @tailcallee(i32 3) ret void } define fastcc void @tailcallee(i32 %i) { entry: call void @tobeinlined() ret void } attributes #0 = { alwaysinline } Clearly, if this is processed with opt -alwaysinl...
2012 Aug 29
0
[LLVMdev] How to require ScalarEvolution analysis in a Module pass?
...): 1. Makefile looks like this: all: clang test.c -disable-llvm-optzns -emit-llvm -S llvm-as test.s -o test.bc opt test.bc -loop-unroll -globalopt -loop-unroll -inline -loop-idiom -o out.bc llvm-dis < out.bc > out.ll 2. test.c: #include <stdio.h> int A[100]; static int toBeInlined(int A[100]) { int ans = 0; for (int i=0; i<100; ++i) ans+=A[i]; return ans; } int main() { for (int i=0; i<100; ++i) if (i%3==0) A[i] = i; else A[i] = i+1; int ans = toBeInlined(A); printf("%d\n", ans); ret...
2012 Aug 31
0
[LLVMdev] Function inline pass core dump when removing a function
...ll: clang test.c -disable-llvm-optzns -emit-llvm -S llvm-as test.s -o test.bc opt test.bc -mem2reg -globalopt -inline -loop-unroll -debug-pass Details -o out.bc >& log llvm-dis < out.bc > out.ll 2. test.c: #include <stdio.h> int A[100]; static int toBeInlined(int A[100]) { int ans = 0; for (int i=0; i<100; ++i) ans+=A[i]; return ans; } int main() { for (int i=0; i<100; ++i) if (i%3==0) A[i] = i; else A[i] = i+1; int ans = toBeInlined(A); printf("%d\n", ans); ret...