[llvm-branch-commits] [llvm] [llvm][dfa-jump-threading] Allow DFAJumpThreading with optsize (PR #83049)
Paul Kirth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Feb 26 14:29:07 PST 2024
================
@@ -222,6 +222,11 @@ static cl::opt<bool>
EnableDFAJumpThreading("enable-dfa-jump-thread",
cl::desc("Enable DFA jump threading"),
cl::init(false), cl::Hidden);
+static cl::opt<bool>
+ DFAJumpThreadingOptSize("dfa-jump-thread-optsize",
+ cl::desc("Enable DFA jump threading when optimizing for size"),
+ cl::init(false), cl::Hidden);
+
----------------
ilovepi wrote:
Its rather unfortunate that we need 2 flags to enable a single behavior ... Is there a common place we can put this flag and use it here and in `DFAJumpThreading.cpp`?
https://github.com/llvm/llvm-project/pull/83049
More information about the llvm-branch-commits
mailing list