[all-commits] [llvm/llvm-project] 1514f3: [AArch64][GlobalISel] Don't perform the mul const ...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Wed Feb 10 15:31:24 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1514f3b2c87267974e76c19a78b5d9e2c61bbd4f
      https://github.com/llvm/llvm-project/commit/1514f3b2c87267974e76c19a78b5d9e2c61bbd4f
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/postlegalizercombiner-mulpow2.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Don't perform the mul const combine with G_PTR_ADD

A G_MUL + G_PTR_ADD can also be folded into a madd. So, conservatively, we
shouldn't combine when the G_MUL is used by a G_PTR_ADD either.

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




More information about the All-commits mailing list