[PATCH] D79207: [AArch64][GlobalISel] Use the IR pointer type in MMO to guess G_LOAD regbanks

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 19:49:29 PDT 2020


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64RegisterBankInfo.cpp:689-690
+      if (LdVal) {
+        PointerType *PTy = cast<PointerType>(LdVal->getType());
+        if (PTy->getElementType()->isFPOrFPVectorTy()) {
           OpRegBankIdx[0] = PMI_FirstFPR;
----------------
This is going to break opaque pointers


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79207/new/

https://reviews.llvm.org/D79207





More information about the llvm-commits mailing list