[LLVMdev] Interesting optimization failure.

Matthijs Kooijman matthijs at stdin.nl
Wed Jul 16 03:50:25 PDT 2008


Hi Richard, Duncan,

> > I have been working on using arrays and structs as first class objects.
> good to hear!  The example doesn't make use of that though, does it?
Not directly, but as soon as scalarrepl gets its hands on that array, it
becomes a first class array with extract values.

I already found the error, I was doing a preincrement and a dereference of the
same iterator in a single expression. AFAIK, ordering is not strictly defined
by C for that case, so that might explain why you are getting different
results.

Anyway, fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080714/065096.html

Thanks for reporting!

Gr.

Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080716/fcdcfde8/attachment.sig>


More information about the llvm-dev mailing list