[llvm] [NFC] SimplifyCFG: Detect switch replacement earlier in `switchToLookup` (PR #155602)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 28 06:02:15 PDT 2025
================
@@ -6491,13 +6496,15 @@ class SwitchLookupTable {
ConstantInt *LinearMultiplier = nullptr;
bool LinearMapValWrapped = false;
- // For ArrayKind, this is the array.
- GlobalVariable *Array = nullptr;
+ // For LookupTableKind, this is the table.
+ GlobalVariable *Table = nullptr;
+ ArrayType *TableTy = nullptr;
----------------
nikic wrote:
Why do we need to store TableTy in here? Isn't this just `Initializer->getType()`?
https://github.com/llvm/llvm-project/pull/155602
More information about the llvm-commits
mailing list