[all-commits] [llvm/llvm-project] 0da367: [RISCV] Add some tests for SimplifyCFG's switch to...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Jul 31 16:34:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0da367145cb32f45a192e6f758a7474297730fc4
      https://github.com/llvm/llvm-project/commit/0da367145cb32f45a192e6f758a7474297730fc4
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-07-31 (Sat, 31 Jul 2021)

  Changed paths:
    A llvm/test/Transforms/SimplifyCFG/RISCV/switch_to_lookup_table-rv32.ll
    A llvm/test/Transforms/SimplifyCFG/RISCV/switch_to_lookup_table-rv64.ll

  Log Message:
  -----------
  [RISCV] Add some tests for SimplifyCFG's switch to lookup table transform

These are some of the basic cases taken from X86.

We currently fail to use lookup tables on many of these cases
because SimplifyCFG requires a legal type to do the transform and
RISCV only has one legal integer type.




More information about the All-commits mailing list