[PATCH] D19924: Representing bundle locked groups as fragments in MCAssembler

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 12:13:08 PDT 2016


phosek added a comment.

Yes, I wrote a little script which can be used to see the memory usage in relation to the input size. I have uploaded a modified version which should work with the upstream Clang/LLVM to Gist <https://gist.github.com/petrhosek/6848a2a56bc5cbbb1ac637e2f6411b4c>. Running with 1000 functions and 1000 calls can take a long time so I recommend stopping the script after you get enough data to see the trend (the script iteratively subdivides the input space as it runs so over time you'll get more and more precise data). To check the memory consumption in the relax-all case, just add `-mc-relax-all` to the list of argument on the line 128. I also recommend changing the size of the worker group on line 227 depending on the number of cores you have to avoid hammering your machine.


http://reviews.llvm.org/D19924





More information about the llvm-commits mailing list