[llvm] [CodeGen] TwoAddressInstructionPass: Control NumVisited limit via command line option (PR #100125)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 02:32:46 PDT 2024
================
@@ -80,6 +80,13 @@ EnableRescheduling("twoaddr-reschedule",
cl::desc("Coalesce copies by rescheduling (default=true)"),
cl::init(true), cl::Hidden);
+// Limit the number of rescheduling visits to dependent instructions.
+// FIXME: Arbitrary limit to reduce compile time cost.
+static cl::opt<unsigned>
+ MaxVisits("twoaddr-visit-limit", cl::Hidden, cl::init(10),
----------------
RKSimon wrote:
`twoaddr-reschedule-visit-limit` sgtm
https://github.com/llvm/llvm-project/pull/100125
More information about the llvm-commits
mailing list