[PATCH] D95649: [GlobalISel] Implement regbankselect for G_ASSERT_ZEXT

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 16:22:29 PST 2021


paquette created this revision.
paquette added reviewers: aemerson, arsenm.
Herald added subscribers: hiraditya, kristof.beyls, rovka.
paquette requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

This adds generic regbankselect support for G_ASSERT_ZEXT.

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

Register bank selection traverses the blocks in a function in reverse post-order, and then traverses the instructions in each block top-down. So, 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.


https://reviews.llvm.org/D95649

Files:
  llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
  llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/regbank-assert-zext.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95649.319988.patch
Type: text/x-patch
Size: 13245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210129/7acdf652/attachment.bin>


More information about the llvm-commits mailing list