<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Happy to help.  You'll probably find that other optimizations help as<br>well, such as simplifycfg (which deletes dead blocks). 
</blockquote><div><br>Thank you. I am using it.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Depending on what<br>you are doing, using the LLVM IR can be tricky for this sort of stuff
<br>because it can get too far from the source level.<br></blockquote></div><br>Yes, it is really a problem. Now I am using my eyes to map the LLVM IR back to the source code. But it's tedious and error prone. Is there any better way to do this? I guess carrying debug information in LLVM IR might help. But I don't know how to use the debug information.
<br>