[all-commits] [llvm/llvm-project] b3c6a3: [NFC] Move vector unmerge(trunc) combine to function

Dominik Montada via All-commits all-commits at lists.llvm.org
Tue Jun 2 00:01:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b3c6a36dba569ee7f4353173cfa3e6264ba8d7af
      https://github.com/llvm/llvm-project/commit/b3c6a36dba569ee7f4353173cfa3e6264ba8d7af
  Author: Dominik Montada <dominik.montada at hightec-rt.com>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h

  Log Message:
  -----------
  [NFC] Move vector unmerge(trunc) combine to function

In preparation of D79567, move arsenm's vector unmerge(trunc)
combine to a new function `tryFoldUnmergeCast`


  Commit: 052c962ced71c5130d709186b78c37a4adc59d66
      https://github.com/llvm/llvm-project/commit/052c962ced71c5130d709186b78c37a4adc59d66
  Author: Dominik Montada <dominik.montada at hightec-rt.com>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-unmerge-values.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/artifact-combiner-unmerge-values.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/cvt_f32_ubyte.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-bitcast.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-freeze.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-merge-values.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-store-global.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-unmerge-values.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/zextload.ll

  Log Message:
  -----------
  [GlobalISel] Combine scalar unmerge(trunc)

Summary:
Combine unmerge(trunc) to enable other merge combines.
Without this combine, the scalar unmerge(trunc(merge))
pattern cannot be combined and easily lead to
hard-to-legalize merge/unmerge artifacts.

Reviewed By: arsenm

Tags: #llvm

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


Compare: https://github.com/llvm/llvm-project/compare/d3f49b8d378d...052c962ced71


More information about the All-commits mailing list