[llvm] [SimplifyCFG] Add optimization for switches of powers of two (PR #70977)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 04:14:18 PST 2023
================
@@ -6839,6 +6836,73 @@ static bool ReduceSwitchRange(SwitchInst *SI, IRBuilder<> &Builder,
return true;
}
+static bool simplifySwitchOfPowersOfTwo(SwitchInst *SI, IRBuilder<> &Builder,
----------------
dtcxzyw wrote:
Could you please add some head comments like `ReduceSwitchRange`?
https://github.com/llvm/llvm-project/pull/70977
More information about the llvm-commits
mailing list