[llvm] Imprecise switch case (PR #82795)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 02:41:36 PST 2024
================
@@ -61,6 +61,10 @@ static cl::opt<bool> UserSwitchRangeToICmp(
cl::desc(
"Convert switches into an integer range comparison (default = false)"));
+static cl::opt<bool> UserSwitchToSelect(
+ "switch-to-select", cl::Hidden, cl::init(false),
+ cl::desc("Convert switches into icmp + select (default = false)"));
+
----------------
arsenm wrote:
do we really need new cl::opts for this? Can just be a pass parameter?
https://github.com/llvm/llvm-project/pull/82795
More information about the llvm-commits
mailing list