[LLVMdev] Valid debug information being deleted by DAGCombiner
Villmow, Micah
Micah.Villmow at amd.com
Thu Apr 14 17:31:04 PDT 2011
I am working on some debug problems that we are seeing with the x86 backend and OpenCL.
The input is linked.bc. There are three debug values, ip, tid and gid.
llc -march=x86 linked.bc -o linked-x86.s <-- assembly file has all three values in the debug info section
However, if I attempt to optimize the bitcode with the following command:
opt -disable-opt -inline-all -mem2reg linked.bc -o optimized.bc
llc -march=x86 optimized.bc -o optimized-x86.s <-- Assembly file only has ip and gid in the debug info section.
Any idea on how to get this to work? I've attached the output, which is missing the 'tid' debug variable.
Thanks,
Micah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110414/1fb7a359/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linked.bc
Type: application/octet-stream
Size: 1720 bytes
Desc: linked.bc
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110414/1fb7a359/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: optimized.s
Type: application/octet-stream
Size: 16474 bytes
Desc: optimized.s
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110414/1fb7a359/attachment-0001.obj>
More information about the llvm-dev
mailing list