[all-commits] [llvm/llvm-project] 33c265: [SimplifyCFG] Use indexType from data layout in sw...

Andreas Jonson via All-commits all-commits at lists.llvm.org
Sat Jun 28 12:00:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 33c265ddf7f37815d38d742ea27c161aaff8931e
      https://github.com/llvm/llvm-project/commit/33c265ddf7f37815d38d742ea27c161aaff8931e
  Author: Andreas Jonson <andjo403 at hotmail.com>
  Date:   2025-06-28 (Sat, 28 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/RISCV/switch-of-powers-of-two.ll
    M llvm/test/Transforms/SimplifyCFG/RISCV/switch_to_lookup_table-rv64.ll
    M llvm/test/Transforms/SimplifyCFG/X86/disable-lookup-table.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch-covered-bug.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch-of-powers-of-two.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch-table-bug.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-bitcast.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-gep.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-globals.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch-to-lookup-large-types.ll
    M llvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
    M llvm/test/Transforms/SimplifyCFG/rangereduce.ll
    M llvm/test/Transforms/SimplifyCFG/switch-dead-default-lookup-table.ll
    M llvm/test/Transforms/SimplifyCFG/switch_mask.ll

  Log Message:
  -----------
  [SimplifyCFG] Use indexType from data layout in switch to table conversion (#146207)

Generate the GEP with the index type that InstCombine will cast it to but use the knowledge that the index is unsigned.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list