search for: fib_right

Displaying 2 results from an estimated 2 matches for "fib_right".

2014 Oct 17
3
[LLVMdev] oprofile support?
...an mmap/large malloc request) oprofile ignores the samples. I would have though it would attribute those samples to lli which owns its heap. Perhaps that's a bug? My test case is this little C program converted to IR and run with lli: loopy.c: #include <stdio.h> int fib_left(int); int fib_right(int); int fib_left(int i) { if (i < 2) return 1; return fib_left(i-1) + fib_right(i-2); } int fib_right(int i) { if (i < 2) return 1; return fib_left(i-1) + fib_right(i-2); } int fib(int i) { if (i < 2) return 1; return fib_left(i-1) + fib_right(i-2); } int main() { int i = 45; prin...
2014 Nov 29
2
[LLVMdev] oprofile support?
...the samples. I would have > though it would attribute those samples to lli which owns its heap. Perhaps > that's a bug? > > My test case is this little C program converted to IR and run with lli: > > loopy.c: > > #include <stdio.h> > int fib_left(int); > int fib_right(int); > int fib_left(int i) { > if (i < 2) return 1; > return fib_left(i-1) + fib_right(i-2); } > int fib_right(int i) { if (i < 2) return 1; > return fib_left(i-1) + fib_right(i-2); } > int fib(int i) { if (i < 2) return 1; > return fib_left(i-1) + fib_right(i-2...