[LLVMdev] Prevent instruction elimination
Xinfinity
xinfinity_a at yahoo.com
Mon Oct 25 09:15:21 PDT 2010
Hi Duncan,
The empty inline asm crossed my mind as well, but LLVM handles inline
assemblies as calls. This would lead to a dependence if it is inside of a
loop, right? And this means a considerable impact on the optimizers.
Is it possible to avoid it?
Thanks,
Alexandra
Duncan Sands wrote:
>
>
> LLVM certainly will remove volatile loads and stores to local variables
> (at least in simple situations). I suggest using an empty asm statement.
>
> Ciao,
>
> Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
--
View this message in context: http://old.nabble.com/Prevent-instruction-elimination-tp30046067p30049449.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the llvm-dev
mailing list