[llvm] Imprecise switch case (PR #82795)
Acim Maravic via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 07:44:41 PDT 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)"));
+
----------------
Acim-Maravic wrote:
This is just for testing purposes, I guess in one point we will instantiate a pass with enable by default...
https://github.com/llvm/llvm-project/pull/82795
More information about the llvm-commits
mailing list