[llvm] [LLVM][SimplifyCFG] Make validLookupTableConstant explicitly reject vector types. (PR #182555)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 13:23:46 PST 2026
https://github.com/nikic commented:
This preserves the existing behavior, but I don't think there is any actual *problem* with allowing vectors here, right? It should be both valid and profitable.
It might make sense to instead add ConstantVectorData to the whitelist (ConstantVector in general would require handling constant expressions inside vectors). Or if we don't do that, should at least leave a TODO to make it clear that this is just preserving historical behavior.
https://github.com/llvm/llvm-project/pull/182555
More information about the llvm-commits
mailing list