Displaying 3 results from an estimated 3 matches for "tp30046067p30049711".
2010 Oct 25
0
[LLVMdev] Prevent instruction elimination
On Oct 25, 2010, at 2:13 AM, Xinfinity wrote:
>
> Hello,
>
> Does there exist something like a "dummy" instruction that is not removed by
> the optimizers, even if it seems to be dead code?
> I want to use such instructions to carry metadata information, but they
> should have a minimal impact on the code generation and optimization.
Use of metadata will not
2010 Oct 25
2
[LLVMdev] Prevent instruction elimination
...IR.
I know that metadata will not prevent the elimination, but I am asking if
there is any way to prevent this, or what kind of instructions I could use
to have a minimal influence on the optimizers.
Alexandra
--
View this message in context: http://old.nabble.com/Prevent-instruction-elimination-tp30046067p30049711.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Oct 25
4
[LLVMdev] Prevent instruction elimination
Hello,
Does there exist something like a "dummy" instruction that is not removed by
the optimizers, even if it seems to be dead code?
I want to use such instructions to carry metadata information, but they
should have a minimal impact on the code generation and optimization. I used
an add instruction:
%0 = add i8 1, 2, !pragma_instrument_mem_add !0 ; <i8> [#uses=0]
which