[PATCH] D16124: Add to the split module utility an SCC based method which allows not to globalize any local variables.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 13 11:26:48 PST 2016


pcc added a comment.

> The only question would be - same patch or an independent feature? Under common flag?


Up to you.

> I will see if I can do some sorting prior to partition assignment, but if it fails I do not think this will work.


Yes, you will need to sort the equivalence classes. (It may also be beneficial to sort by partition size as well -- this is the LPT multiprocessor scheduling algorithm -- see https://en.wikipedia.org/wiki/Multiprocessor_scheduling). One thing that could help you is that the identity of the leader should be deterministic, so you can sort on its name.


http://reviews.llvm.org/D16124





More information about the llvm-commits mailing list