[all-commits] [llvm/llvm-project] 546e46: [AArch64][GlobalISel] If a G_BUILD_VECTOR operands...

AE via All-commits all-commits at lists.llvm.org
Fri Sep 25 18:28:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 546e460a00a985ce6fca323fe509f7d4e893b621
      https://github.com/llvm/llvm-project/commit/546e460a00a985ce6fca323fe509f7d4e893b621
  Author: Amara Emerson <amara at apple.com>
  Date:   2020-09-25 (Fri, 25 Sep 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/regbankselect-build-vector.mir
    M llvm/test/CodeGen/AArch64/arm64-vabs.ll

  Log Message:
  -----------
  [AArch64][GlobalISel] If a G_BUILD_VECTOR operands are all G_CONSTANT then assign to gpr bank.

Even if the type is s8/s16, assigning to gpr is preferable with constants because
worst case we can select via a constant pool load, and without cross-bank copies
to the FPR bank more patterns can be imported later.




More information about the All-commits mailing list