When converting the switch to BitMap lookup table, its shift amount calculation is guaranteed to never overflow when deciding to use BitMap, on WouldFitInRegister.
This is part of https://reviews.llvm.org/D146903.
Differential D150838
[SimplifyCFG] add nuw/nsw on BuildLookuptable BitMap shiftwidth calculation khei4 on May 17 2023, 9:35 PM. Authored by
Details When converting the switch to BitMap lookup table, its shift amount calculation is guaranteed to never overflow when deciding to use BitMap, on WouldFitInRegister. This is part of https://reviews.llvm.org/D146903.
Diff Detail Event TimelineComment Actions LGTM
|
Does this comply with clang-format?