[all-commits] [llvm/llvm-project] 98d51c: [RISCV] Override TargetLowering::BuildSDIVPow2 to ...

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Mon Jan 10 23:55:09 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98d51c2542dc63608d3e98de415e090030e3ace1
      https://github.com/llvm/llvm-project/commit/98d51c2542dc63608d3e98de415e090030e3ace1
  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
    A llvm/test/CodeGen/RISCV/div-pow2.ll

  Log Message:
  -----------
  [RISCV] Override TargetLowering::BuildSDIVPow2 to generate SELECT

When `Zbt` is enabled, we can generate SELECT for division by power
of 2, so that there is no data dependency.

Reviewed By: craig.topper

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




More information about the All-commits mailing list