[llvm] Imprecise switch case (PR #82795)
Thomas Symalla via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 11:08:40 PST 2024
================
@@ -7028,7 +7071,11 @@ bool SimplifyCFGOpt::simplifySwitch(SwitchInst *SI, IRBuilder<> &Builder) {
if (eliminateDeadSwitchCases(SI, DTU, Options.AC, DL))
return requestResimplify();
- if (trySwitchToSelect(SI, Builder, DTU, DL, TTI))
+ bool IsSwitchToSelect = false;
+ if (Options.ConvertSwitchToSelect)
+ IsSwitchToSelect = true;
----------------
tsymalla wrote:
`IsSwitchToSelect = Options.ConvertSwitchToSelect`?
https://github.com/llvm/llvm-project/pull/82795
More information about the llvm-commits
mailing list