[all-commits] [llvm/llvm-project] d5736a: [GlobalISel] Implement regbankselect for G_ASSERT_...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Thu Jan 28 16:56:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5736a2746d3188f5d9a23d69da2226f9a318bda
      https://github.com/llvm/llvm-project/commit/d5736a2746d3188f5d9a23d69da2226f9a318bda
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
    M llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/regbank-assert-zext.mir

  Log Message:
  -----------
  [GlobalISel] Implement regbankselect for G_ASSERT_ZEXT

This adds generic regbankselect support for G_ASSERT_ZEXT.

It inherits whatever register bank the source was given, always, on all targets.

I think that at the point where we run into these, the source register bank
should be decided.

This also adds some AArch64-specific code which makes sure we can handle
G_ASSERT_ZEXT when deciding on register banks for G_STORE, G_PHI, ... etc.

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




More information about the All-commits mailing list