[PATCH] D140965: [GlobalISel] Add G_BUILD_VECTOR[_TRUNC] to CSE

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 02:40:12 PST 2023


rovka created this revision.
rovka added reviewers: AMDGPU, paquette, aemerson.
Herald added subscribers: kosarev, kerbowa, hiraditya, jvesely.
Herald added a project: All.
rovka requested review of this revision.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140965

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140965.486215.patch
Type: text/x-patch
Size: 30184 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230104/961c7f7c/attachment.bin>


More information about the llvm-commits mailing list