Dear All, I'm using LLVM2.9 for profiling basic block frequency. I'm using following commands. rdpatel55 at ubuntu:~$ llvm-gcc -emit-llvm -O0 -c -o adpcm.bc adpcm.c rdpatel55 at ubuntu:~$ llvm-gcc -emit-llvm -O0 -c -o rawcaudio.bc rawcaudio.c rdpatel55 at ubuntu:~$ llvm-link -o main.bc rawcaudio.bc adpcm.bc rdpatel55 at ubuntu:~$ opt -q -f -insert-edge-profiling -o main.inst main.bc rdpatel55 at ubuntu:~$ lli -fake-argv0 'main.bc' -load /home/rdpatel55/RDPATEL/LLVM2.9/OBJ_ROOT/Debug+Profile/lib/profile_rt.so main.inst < ./small.pcm > op_small.adpcm rdpatel55 at ubuntu:~$ llvm-prof main.inst > profile.txt rdpatel55 at ubuntu:~$ llvm-prof -annotated-llvm main.inst > bb.txt (This gives BB frequency for all Blocks) It works fine. But I found that for certain blocks the execution frequency calculated is wrong. Is there someone to help me to figure out, where something is wrong? Thank you, Rajendra Patel
Chandler Carruth
2012-Nov-19 10:34 UTC
[LLVMdev] Basic Block Frequency counting in LLVM 2.9
Both llvm-gcc and llvm 2.9 are ancient and dead. None are terribly likely to be able to help you with debugging them. Sorry. =/ On Sun, Nov 18, 2012 at 4:14 AM, Rajendra Patel <rdpatel55 at yahoo.co.in> wrote:> Dear All, > > I'm using LLVM2.9 for profiling basic block frequency. > I'm using following commands. > > rdpatel55 at ubuntu:~$ llvm-gcc -emit-llvm -O0 -c -o adpcm.bc adpcm.c > rdpatel55 at ubuntu:~$ llvm-gcc -emit-llvm -O0 -c -o rawcaudio.bc rawcaudio.c > rdpatel55 at ubuntu:~$ llvm-link -o main.bc rawcaudio.bc adpcm.bc > rdpatel55 at ubuntu:~$ opt -q -f -insert-edge-profiling -o main.inst main.bc > rdpatel55 at ubuntu:~$ lli -fake-argv0 'main.bc' -load > /home/rdpatel55/RDPATEL/LLVM2.9/OBJ_ROOT/Debug+Profile/lib/profile_rt.so > main.inst < ./small.pcm > op_small.adpcm > rdpatel55 at ubuntu:~$ llvm-prof main.inst > profile.txt > rdpatel55 at ubuntu:~$ llvm-prof -annotated-llvm main.inst > bb.txt (This gives BB > frequency for all Blocks) > > It works fine. But I found that for certain blocks the execution frequency > calculated is wrong. > > Is there someone to help me to figure out, where something is wrong? > > Thank you, > > Rajendra Patel > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Possibly Parallel Threads
- [LLVMdev] profiling basic block frequency in LLVM3.1
- [LLVMdev] LLVM and CLANG Build question
- [LLVMdev] Fail when building llvm2.9 using MinGW64
- [LLVMdev] Cross-compile to ARM using Code Sourcery Lite Toolchain
- [LLVMdev] Issue with GetElementPtrInst in Instruction Combining pass