[all-commits] [llvm/llvm-project] c6430f: [RISCV] Generate 32 bits jumptable entries when co...

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Tue Jan 11 02:22:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6430fade34449b5450848b25ebb5ee9596f7424
      https://github.com/llvm/llvm-project/commit/c6430fade34449b5450848b25ebb5ee9596f7424
  Author: wangpc <pc.wang at linux.alibaba.com>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.h
    M llvm/test/CodeGen/RISCV/jumptable.ll

  Log Message:
  -----------
  [RISCV] Generate 32 bits jumptable entries when code model is small

The code can only address the whole RV32 address space or the lower 2 GiB
of the RV64 address space in small code model, so 32 bits entry is enough.
Cache hit ratio and code size have some improvements.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D116435




More information about the All-commits mailing list