[LLVMdev] Interesting optimization failure.
Duncan Sands
baldrick at free.fr
Wed Jul 16 03:27:05 PDT 2008
Hi,
> I think that the example is using arrays as first class objects,
> especially this:
>
> %ar = alloca [10 x i8] ; <[10 x i8]*> [#uses=2]
> store [10 x i8] c"12\00\00\00\00\00\00\00\00", [10 x i8]* %ar
>
> It's assigning an array constant to an array.
I missed that, sorry. I can reproduce it here by running "opt -std-compile-opts"
on the -O1 assembler you provided.
Ciao,
Duncan.
More information about the llvm-dev
mailing list