[PATCH] D119839: [SimplifyCFG] Propagating case value when turning switch range into icmp
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 15 07:33:30 PST 2022
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:6577-6580
// Try to transform the switch into an icmp and a branch.
if (TurnSwitchRangeIntoICmp(SI, Builder))
return requestResimplify();
----------------
Perhaps `TurnSwitchRangeIntoICmp()` simply should have similar treatment to `SwitchToLookupTable()`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119839/new/
https://reviews.llvm.org/D119839
More information about the llvm-commits
mailing list