[clang] [llvm] [VectorCombine] Trim low end of loads used in shufflevector rebroadcasts. (PR #149093)

Leon Clark via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 21 04:16:15 PST 2026


================
@@ -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.getInt32(LowOffset))
----------------
PeddleSpam wrote:

Thanks 🙏

https://github.com/llvm/llvm-project/pull/149093


More information about the cfe-commits mailing list