[llvm-dev] ASM disappears when NOT optimizing

Carlo Kok via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 4 22:10:10 PST 2022


Thanks! that solved it. 

On Tue, Jan 4, 2022, at 21:56, Jacob Lifshay wrote:
> 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/20220105/31b02379/attachment.html>


More information about the llvm-dev mailing list