================ @@ -2088,6 +2093,8 @@ bool llvm::promoteLoopAccessesToScalars( FoundLoadToPromote = true; Align InstAlignment = Load->getAlign(); + LoadIsGuaranteedToExecute |= ---------------- fhahn wrote: Done, thanks! https://github.com/llvm/llvm-project/pull/117204