[llvm] [CodeGen] TwoAddressInstructionPass: Control NumVisited limit via command line option (PR #100125)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 10:08:38 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),
----------------
AtariDreams wrote:
I feel like I am not the person who should make that decision
https://github.com/llvm/llvm-project/pull/100125
More information about the llvm-commits
mailing list