[PATCH] D137341: [VectorCombine] widen a load with subvector insert
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 6 09:38:03 PST 2022
arsenm added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/VectorCombine.cpp:321-322
+ IRBuilder<> Builder(Load);
+ Value *CastedPtr =
+ Builder.CreatePointerBitCastOrAddrSpaceCast(SrcPtr, Ty->getPointerTo(AS));
+ Value *VecLd = Builder.CreateAlignedLoad(Ty, CastedPtr, Alignment);
----------------
Shouldn't need to create an addrspacecast here
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137341/new/
https://reviews.llvm.org/D137341
More information about the llvm-commits
mailing list