[all-commits] [llvm/llvm-project] f0460f: [AArch64] Improve target hook function to decide f...

Ben Shi via All-commits all-commits at lists.llvm.org
Tue Sep 7 18:51:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0460fa4eb719f621fc0ec971d55b530d90a58e1
      https://github.com/llvm/llvm-project/commit/f0460fa4eb719f621fc0ec971d55b530d90a58e1
  Author: Ben Shi <powerman1st at 163.com>
  Date:   2021-09-08 (Wed, 08 Sep 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.h
    M llvm/test/CodeGen/AArch64/addimm-mulimm.ll
    M llvm/test/CodeGen/AArch64/urem-seteq-nonzero.ll

  Log Message:
  -----------
  [AArch64] Improve target hook function to decide folding (mul (add x, c1), c2)

Prevent the folding if it leads to worse code.

Reviewed By: dmgreen, kda

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




More information about the All-commits mailing list