[PATCH] D93154: GlobalISel: remove assert that memcpy Src and Dst addrspace must be identical
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 3 15:36:51 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:7802
if (CurrOffset != 0) {
- Offset = MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset)
- .getReg(0);
- LoadPtr = MIB.buildPtrAdd(PtrTy, Src, Offset).getReg(0);
+ LLT LoadTy = MRI.getType(Src);
+ Offset =
----------------
I think the variable names are now more confusing, this is still a PtrTy. SrcPtrTy?
================
Comment at: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:7813
+ if (CurrOffset != 0) {
+ LLT StoreTy = MRI.getType(Dst);
+ StorePtr = MIB.buildPtrAdd(StoreTy, Dst, Offset).getReg(0);
----------------
DstPtrTy?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93154/new/
https://reviews.llvm.org/D93154
More information about the llvm-commits
mailing list