[LLVMdev] Adding option to LLVM opt to disable a specific pass from command line

Joerg Sonnenberger joerg at britannica.bec.de
Fri Dec 9 04:22:54 PST 2011


On Fri, Dec 09, 2011 at 10:03:37AM +0100, Seb wrote:
> I think my explanation is not clear, my front-end did NOTt generate
> 'llvm.memcpy' it generate LL code that after use of LLVM 'opt' get
> transformed by 'loop-idom' pass into an 'llvm.memcpy' for an overlapping
> loop:
> 
> static void
> t0(int n)
> {
>     int i;
>     for (i=0; i<n; i++)
>     result[i+1] = result[i];
> }

Do you really want to assign result[0] to everything?

I wonder how much work it is to each the loop-idiom pass to handle this
and the case of reverse indices correctly, if result is char *. E.g.
create either memset or memmove...

Joerg



More information about the llvm-dev mailing list