[llvm] [LICM] Only set AA metadata on hoisted load if it executes. (PR #117204)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 03:10:25 PST 2024


================
@@ -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


More information about the llvm-commits mailing list