================
@@ -4789,8 +4794,13 @@ bool VectorCombine::shrinkLoadForShuffles(Instruction
&I) {
return false;
// Create new load of smaller vector.
+ Value *NewPtr =
+ LowOffset > 0u
+ ? Builder.CreateInBoundsPtrAdd(PtrOp,
Builder.getInt64(LowOffset))
----------------
arsenm wrote:
Should use constant of correct address space size. If this is a 32-bit pointer
it adds an extra step
https://github.com/llvm/llvm-project/pull/149093
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits