[PATCH] D76601: [GlobalISel] combine trunc(trunc) pattern

Dominik Montada via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 23 05:26:08 PDT 2020


gargaroff created this revision.
gargaroff added reviewers: arsenm, aemerson, dsanders.
Herald added subscribers: llvm-commits, kerbowa, rovka, nhaehnle, wdng, jvesely.
Herald added a project: LLVM.

Legalization can introduce the trunc(trunc) pattern. This can cause
problems if one of these intermediate truncs is not legal.
Combine truncs of this pattern, if the resulting trunc is legal.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76601

Files:
  llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-load-trunc.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-trunc.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bitcast.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-extract.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-inttoptr.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-trunc.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76601.251996.patch
Type: text/x-patch
Size: 7594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200323/dd27b5f1/attachment.bin>


More information about the llvm-commits mailing list