[all-commits] [llvm/llvm-project] ca2e05: [AArch64][GlobalISel] Legalize wide vector G_PHIs

Jessica Paquette via All-commits all-commits at lists.llvm.org
Wed Aug 4 16:49:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca2e0536527f0e0dfbab30a90529581e766ba2d9
      https://github.com/llvm/llvm-project/commit/ca2e0536527f0e0dfbab30a90529581e766ba2d9
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-08-04 (Wed, 04 Aug 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-phi.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Legalize wide vector G_PHIs

Clamp the max number of elements when legalizing G_PHI. This allows us to
legalize some common fallbacks like 4 x s64.

Here's an example: https://godbolt.org/z/6YocsEYTd

Had to add -global-isel-abort=0 to legalize-phi.mir to account for the
G_EXTRACT_VECTOR_ELT from the 32 x s8 G_PHI.

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




More information about the All-commits mailing list