[LLVMdev] [PATCH] Fix nondeterministic behaviour in the CodeExtractor

Chris Lattner clattner at apple.com
Fri Jan 8 17:04:17 PST 2010


On Jan 8, 2010, at 5:01 PM, Julien Lerouge wrote:

> Hello,
>
> The CodeExtractor contains a std::set<BasicBlock*> to keep track of  
> the
> blocks to extract. Iterators on this set are not deterministic, and so
> the functions that are generated are not (the order of the
> inputs/outputs can change).
>
> The attached patch uses a SetVector instead. Ok to apply ?

Nice catch, please apply,

-Chris

>
> Thanks,
> Julien
>
>
> -- 
> Julien Lerouge
> PGP Key Id: 0xB1964A62
> PGP Fingerprint: 392D 4BAD DB8B CE7F 4E5F FA3C 62DB 4AA7 B196 4A62
> PGP Public Key from: keyserver.pgp.com
> <codeextractor.diff>_______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list