Displaying 3 results from an estimated 3 matches for "32b5f926".
2011 Jul 06
0
[LLVMdev] code generation removes duplicated instructions
On 6 July 2011 15:57, D S Khudia <daya.khudia at gmail.com> wrote:
> Since I am inserting a new basic block (contains printf statement and
> program exit) which is jumped upon based on the result of
> the comparison, the compiler cannot/shouldnot optimize that away by means of
> DCE or anything else.
It most certainly can, since the comparison yields always the same
result. The
2011 Jul 06
2
[LLVMdev] code generation removes duplicated instructions
Hello,
The code snippet pasted in the previous email are generated at -O0 with llc.
Since I am inserting a new basic block (contains printf statement and
program exit) which is jumped upon based on the result of
the comparison, the compiler cannot/shouldnot optimize that away by means of
DCE or anything else.
The same kind of stuff is happening for the following duplication.
bb6.split:
2011 Jul 06
2
[LLVMdev] code generation removes duplicated instructions
...ler.
>
> Anything that would make it difficult for the compiler to see that
> both are the same would do...
>
> cheers,
> --renato
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110706/32b5f926/attachment.html>