[all-commits] [llvm/llvm-project] 4cf3db: [GlobalISel] Add sdiv exact (X, constant) -> mul c...

Amara Emerson via All-commits all-commits at lists.llvm.org
Thu Sep 1 05:34:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cf3db41daa936626fd1857ce1f962b38374f2af
      https://github.com/llvm/llvm-project/commit/4cf3db41daa936626fd1857ce1f962b38374f2af
  Author: Amara Emerson <amara at apple.com>
  Date:   2022-09-01 (Thu, 01 Sep 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
    M llvm/include/llvm/Target/GlobalISel/Combine.td
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/lib/CodeGen/GlobalISel/Utils.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/combine-sdiv.mir

  Log Message:
  -----------
  [GlobalISel] Add sdiv exact (X, constant) -> mul combine.

This port of the SDAG optimization is only for exact sdiv case.

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




More information about the All-commits mailing list