[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
Sat Nov 23 04:21:34 PST 2024


================
@@ -2247,7 +2253,7 @@ bool llvm::promoteLoopAccessesToScalars(
       PreheaderLoad->setOrdering(AtomicOrdering::Unordered);
     PreheaderLoad->setAlignment(Alignment);
     PreheaderLoad->setDebugLoc(DebugLoc());
-    if (AATags)
+    if (AATags && LoadIsGuanteedToExecute)
----------------
fhahn wrote:

Updated, thanks.

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


More information about the llvm-commits mailing list