[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:42 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
+/// transformation once the total number of devirtualizations reach the cutoff
+/// value.
+static cl::opt<unsigned> WholeProgramDevirtCutoff(
+    "wholeprogramdevirt-cutoff",
+    cl::desc("Max number of devirtualization for devirt module pass"),
----------------
teresajohnson wrote:

s/devirtualization/devirtualizations/

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


More information about the llvm-commits mailing list