[all-commits] [llvm/llvm-project] bf4f9a: [RISCV]Enable isIntDivCheap when attribute is minsize

ChunyuLiao via All-commits all-commits at lists.llvm.org
Wed Jul 27 03:23:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf4f9a468a3fe5f26c2d420949edc481527c67bd
      https://github.com/llvm/llvm-project/commit/bf4f9a468a3fe5f26c2d420949edc481527c67bd
  Author: LiaoChunyu <chunyu at iscas.ac.cn>
  Date:   2022-07-27 (Wed, 27 Jul 2022)

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

  Log Message:
  -----------
  [RISCV]Enable isIntDivCheap when attribute is minsize

Don't expand divisions by constants when attribute is minsize.

Reviewed By: craig.topper

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




More information about the All-commits mailing list