[all-commits] [llvm/llvm-project] d92798: [AArch64][GlobalISel] Widen G_PHI before clamping ...

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9279843b1bafcfb1f540d3093b86023025b6717
      https://github.com/llvm/llvm-project/commit/d9279843b1bafcfb1f540d3093b86023025b6717
  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
    M llvm/test/CodeGen/AArch64/pr48188.ll

  Log Message:
  -----------
  [AArch64][GlobalISel] Widen G_PHI before clamping it during legalization

This allows us to handle weird types like s88; we first widen to s128, then
clamp back down to s64.

https://godbolt.org/z/9xqbP46Mz

Also this makes it possible for GISel to legalize the case in pr48188.ll. It
now does the same thing as SDAG, although regalloc chooses different registers.

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




More information about the All-commits mailing list