[PATCH] D146903: [SimplifyCFG] add nsw on SwitchToLookupTable Index calculation
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 22 12:50:08 PDT 2023
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll:1812
+; can attach nsw because of default's unreachability and case value type size
+; is big enough to hold max signd value.
+define i32 @nsw_on_index_sub(i8 %n) {
----------------
signd -> signed
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146903/new/
https://reviews.llvm.org/D146903
More information about the llvm-commits
mailing list