[all-commits] [llvm/llvm-project] 6ee4f2: [GlobalISel] Add G_BUILD_VECTOR[_TRUNC] to CSE

Diana via All-commits all-commits at lists.llvm.org
Thu Jan 5 01:31:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ee4f253b2c4b5f86bf69936c704e8537ecc921e
      https://github.com/llvm/llvm-project/commit/6ee4f253b2c4b5f86bf69936c704e8537ecc921e
  Author: Diana Picus <Diana-Magda.Picus at amd.com>
  Date:   2023-01-05 (Thu, 05 Jan 2023)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/combine-udiv.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/combine-udiv.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-fp-arith.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-min-max.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/prelegalizer-combiner-mulo-zero.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-build-vector-splat.mir
    M llvm/unittests/CodeGen/GlobalISel/CSETest.cpp

  Log Message:
  -----------
  [GlobalISel] Add G_BUILD_VECTOR[_TRUNC] to CSE

Add G_BUILD_VECTOR and G_BUILD_VECTOR_TRUNC to the list of opcodes in
`shouldCSEOpc`. This simplifies the code generated for vector splats.

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




More information about the All-commits mailing list