[llvm] [WPD][ThinLTO]Add cutoff option for WPD (PR #113383)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 22:29:43 PDT 2024


================
@@ -168,6 +168,14 @@ static cl::list<std::string>
                       cl::desc("Prevent function(s) from being devirtualized"),
                       cl::Hidden, cl::CommaSeparated);
 
+/// If this value is other than 0, the devirt module pass will stop
----------------
teresajohnson wrote:

I believe the way the code is written, value 0 is not special and will cause no devirts to happen - assuming the option was specified (i.e. getNumOccurrences() > 0). And in fact we probably want a way to say "do 0 devirtualizations".

https://github.com/llvm/llvm-project/pull/113383


More information about the llvm-commits mailing list