Change the order of the alias analysis passes to align with the opt pipeline of LLVM
Created attachment 232880 [details] Patch
Comment on attachment 232880 [details] Patch Seems reasonable. Is this a speedup, or just a cleanup?
I didn't check if there is a speedup, but I feel more comfortable using an order that is used and tested by the default LLVM opt pipeline.
The AA implementations are queried in reverse order, last added, first queried. For C++, we query BasicAA first for correctness. It may actually disagree with TBAA! If TBAA says objects can't alias, but they are obviously derived from the same pointer, then TBAA is wrong and we want to catch that. For JS, that's not an issue and it makes sense to query TBAA first instead since it is probably faster. However, if we can't measure any compile time difference, then I agree with Juergen, that it's a bit less risky to be consistent with the C++ optimizer.
Comment on attachment 232880 [details] Patch Clearing flags on attachment: 232880 Committed r170022: <http://trac.webkit.org/changeset/170022>
All reviewed patches have been landed. Closing bug.