[PATCH] D143526: [GlobalISel] Handle ptr size != index size in IRTranslator
Krzysztof Drewniak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 13:37:28 PST 2023
krzysz00 added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp:1516
PtrTy = getLLTForType(*PtrIRTy, *DL);
- OffsetIRTy = DL->getIntPtrType(PtrIRTy);
+ OffsetIRTy = DL->getPtrIndexType(PtrIRTy);
OffsetTy = getLLTForType(*OffsetIRTy, *DL);
----------------
arsenm wrote:
> krzysz00 wrote:
> > arsenm wrote:
> > > vector GEP with a scalar index?
> > I figure that already either worked or didn't?
> There certainly isn't a test using a fat pointer using this
Good point, added.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143526/new/
https://reviews.llvm.org/D143526
More information about the llvm-commits
mailing list