[all-commits] [llvm/llvm-project] e46bad: GlobalISel: Have lowerLoad scalarize unaligned vec...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Jul 30 10:23:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e46badd4e9cd2bf2f412b1a857f62ecc88bde5a1
      https://github.com/llvm/llvm-project/commit/e46badd4e9cd2bf2f412b1a857f62ecc88bde5a1
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-constant.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-flat.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-global.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir

  Log Message:
  -----------
  GlobalISel: Have lowerLoad scalarize unaligned vectors

This could be smarter by picking an ideal type, or at least splitting
the vector in half first. Also handles lower for non-power-of-2,
non-extending vector loads.

Currently this just avoids failing to legalize some odd vector AMDGPU
tests, but is a step towards removing the split logic from the
NarrowScalar logic.




More information about the All-commits mailing list