[llvm] [WPD][ThinLTO]Add cutoff option for WPD (PR #113383)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 23 20:22:32 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"),
----------------
minglotus-6 wrote:
done.
https://github.com/llvm/llvm-project/pull/113383
More information about the llvm-commits
mailing list