[all-commits] [llvm/llvm-project] ca8316: [GlobalISel] Extend CombinerHelper::matchConstantO...

Amara Emerson via All-commits all-commits at lists.llvm.org
Thu Sep 30 14:31:48 PDT 2021


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

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/combine-mul.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-trivial-arith.mir

  Log Message:
  -----------
  [GlobalISel] Extend CombinerHelper::matchConstantOp() to match constant splat vectors.

This allows the "x op 0 -> x" fold to optimize vector constant RHSs.

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




More information about the All-commits mailing list