[LLVMdev] Line number and merged calls
Jakob Stoklund Olesen
stoklund at 2pi.dk
Sat Feb 13 10:17:23 PST 2010
On Feb 13, 2010, at 10:09 AM, nicolas geoffray wrote:
> So what I currently depend on, is that each call instruction must have an accurate line number information. I don't care about the line number of other instructions. Will I still run into trouble? If the debug info is attached to the call, how can LLVM optimizers (codegen or IR) mess with it (except with that special branch folding optimization you just mentioned)?
Inlining can make that call disappear entirely.
Partial inlining can introduce new calls.
I don't know if there are optimizations like the codegen branch folding in the IR optimizer. I wouldn't surprise me.
Other than that, you should be perfectly safe ;-)
More information about the llvm-dev
mailing list