[all-commits] [llvm/llvm-project] 9b70a2: [Transform] Rewrite LowerSwitch using APInt
Peter Rong via All-commits
all-commits at lists.llvm.org
Tue Jan 24 20:22:20 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9b70a28e0d767f99bdc778356e81b4d072f59819
https://github.com/llvm/llvm-project/commit/9b70a28e0d767f99bdc778356e81b4d072f59819
Author: Peter Rong <PeterRong96 at gmail.com>
Date: 2023-01-24 (Tue, 24 Jan 2023)
Changed paths:
M llvm/lib/Transforms/Utils/LowerSwitch.cpp
M llvm/test/Transforms/LowerSwitch/pr59316.ll
Log Message:
-----------
[Transform] Rewrite LowerSwitch using APInt
This 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 this problem. This patch also includes a test
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D140747
More information about the All-commits
mailing list