[llvm-dev] ASM disappears when NOT optimizing

Jacob Lifshay via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 4 12:56:56 PST 2022


On Tue, Jan 4, 2022, 12:04 Carlo Kok via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

>
> BasicBlock107:
>   call void asm "\0D\0A       mov  x29, #0x0\0D\0A
>

you forgot to add sideeffect to the asm -- because you told it it has no
outputs, and doesn't affect anything else (no sideeffect), llvm decided to
omit it.

Jacob

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20220104/d478232f/attachment.html>


More information about the llvm-dev mailing list