[PATCH] D140747: [Transform] Rewrite LowerSwitch using APIntThis rewrite fixes https://github.com/llvm/llvm-project/issues/59316.Previously LowerSwitch uses int64_t, which will crash on case branches using integers with more than 64 bits.Using APInt fixes...

Peter Rong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 28 17:49:12 PST 2022


Peter created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Peter requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

...this problem.
This patch also includes a test


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140747

Files:
  llvm/lib/Transforms/Utils/LowerSwitch.cpp
  llvm/test/Transforms/LowerSwitch/pr59316.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140747.485559.patch
Type: text/x-patch
Size: 7474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221229/8f4b6817/attachment.bin>


More information about the llvm-commits mailing list