[PATCH] D87427: [GlobalISel] Add a `X, Y = G_UNMERGE(G_ZEXT Z)` -> X = G_ZEXT Z; Y = 0 combine

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 18:10:36 PDT 2020


qcolombet created this revision.
qcolombet added reviewers: aemerson, paquette, arsenm, volkan.
Herald added subscribers: kerbowa, hiraditya, rovka, nhaehnle, jvesely.
Herald added a project: LLVM.
qcolombet requested review of this revision.
Herald added a subscriber: wdng.

Add a combiner helper to transform unmerge of zext into one zext and
a constant 0


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87427

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/combine-unmerge.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i32.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/shl-ext-reduce.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i32.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i32.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87427.290855.patch
Type: text/x-patch
Size: 52504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200910/b46cad68/attachment.bin>


More information about the llvm-commits mailing list