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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 09:19:18 PST 2024


================
@@ -2030,7 +2030,9 @@ bool llvm::promoteLoopAccessesToScalars(
 
   bool DereferenceableInPH = false;
   bool StoreIsGuanteedToExecute = false;
+  bool LoadIsGuanteedToExecute = false;
----------------
nikic wrote:

```suggestion
  bool LoadIsGuaranteedToExecute = false;
```

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


More information about the llvm-commits mailing list