[llvm-dev] Prevent LLVM optimizations from erasing unused basic blocks

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 9 13:42:46 PDT 2018


On Tue, 9 Oct 2018 at 21:03, Gleb Popov via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Won't @llvm.returnaddress() always get me correct location of my inline asm block?

Why would it? That's the address of the callee and there's no reason
it should correlate with anything whatsoever in the current function.
Before now it sounded like you were using that as some way to trick
LLVM into keeping your block around, which would have no effect on its
position.

Cheers.

Tim.


More information about the llvm-dev mailing list