search for: test_loop

Displaying 6 results from an estimated 6 matches for "test_loop".

2009 Oct 27
2
[LLVMdev] LICM
...int array[20]; int i; for (i = 0; i<100; i++) { array [0] = 0; } The getElementPtr instruction is hoisted out of the loop; the store is not. Did I miss something obvious? Bitcode file attached. Generated using LLVM 2.5 and llvm-gcc -c -emit-llvm test_loop.c -o - | opt -licm -o test.bc -f Thanks Marc -------------- next part -------------- A non-text attachment was scrubbed... Name: test.bc Type: application/octet-stream Size: 624 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091027/c0ceeabf/attachment.o...
2012 Oct 18
0
[LLVMdev] Debugging LLVM IR with GDB
> Has anybody debugged LLVM IR with GDB? I'm using dragonegg to transform C > into IR, then applying my optimizations. Passing "-g" to dragonegg doesn't > seem to work since it generates debug info for the C code, not the IR. I > really need GDB (lli doesn't solve my problems) in order to debug > multi-threaded and multi-process MPI code. > > More
2009 Oct 27
0
[LLVMdev] LICM
...i; > for (i = 0; i<100; i++) { > array [0] = 0; > } > > The getElementPtr instruction is hoisted out of the loop; the store is not. > Did I miss something obvious? Bitcode file attached. > Generated using LLVM 2.5 and > llvm-gcc -c -emit-llvm test_loop.c -o - | opt -licm -o test.bc -f > Thanks for the report. Since this still happens with LLVM at the top of SVN, I filed it as http://llvm.org/PR5319 . Please add yourself to the cc list there. Nick Lewycky -------------- next part -------------- An HTML attachment was scrubbed... URL: <ht...
2009 Oct 27
1
[LLVMdev] LICM
...; > for (i = 0; i<100; i++) { > array [0] = 0; > } > > The getElementPtr instruction is hoisted out of the loop; the store > is not. Did I miss something obvious? Bitcode file attached. > Generated using LLVM 2.5 and > llvm-gcc -c -emit-llvm test_loop.c -o - | opt -licm -o test.bc -f > > Thanks for the report. Since this still happens with LLVM at the top > of SVN, I filed it as http://llvm.org/PR5319 . Please add yourself > to the cc list there. This is expected behavior, you need to run loop rotate before licm to get this....
2012 Oct 18
4
[LLVMdev] Debugging LLVM IR with GDB
...sue is how to coexist with any existing debug metadata, which can be useful for simultaneously debugging an IR transform inline with the C source for instrumentation-style passes like SAFECode, ASan/TSan. Quick Example: (gdb) break main Breakpoint 1 at 0x4010b1: file /home/wdietz2/magic/test/unit/test_loop.c, line 9. (gdb) r Starting program: /home/wdietz2/llvm/32-obj-make/projects/magic/test/Output/test_loop Breakpoint 1, main (argc=<value optimized out>, argv=<value optimized out>) at /home/wdietz2/magic/test/unit/test_loop.c:9 9 unsigned k = 0; Missing separate debuginfos, use...
2012 Oct 17
5
[LLVMdev] Debugging LLVM IR with GDB
Hi all, Has anybody debugged LLVM IR with GDB? I'm using dragonegg to transform C into IR, then applying my optimizations. Passing "-g" to dragonegg doesn't seem to work since it generates debug info for the C code, not the IR. I really need GDB (lli doesn't solve my problems) in order to debug multi-threaded and multi-process MPI code. More clearly, if I have a file