[llvm] [SimplifyCFG] Use indexType from data layout in switch to table conversion (PR #146207)
Andreas Jonson via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 28 04:24:05 PDT 2025
andjo403 wrote:
> Can you check that the redundant sext_inreg is eliminated after this patch? IIRC I did a similar change to SimplifyCFG, but it didn't work :(
when I run the reducer from the Issue after this PR trough llc the "slli + srai" is replaced with a andi see https://godbolt.org/z/nqbc5713o
so maybe not really fix of the Issue as I assume that andi is also redundant as the range is (0, 8]
https://github.com/llvm/llvm-project/pull/146207
More information about the llvm-commits
mailing list