[llvm] [SROA] Optimize reloaded values in allocas that escape into readonly nocapture calls. (PR #116645)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 28 02:58:09 PST 2024
================
@@ -468,6 +472,12 @@ void LoadAndStorePromoter::run(const SmallVectorImpl<Instruction *> &Insts) {
// Remember that this is the active value in the block.
StoredValue = SI->getOperand(0);
+ } else if (auto *AI = dyn_cast<AllocaInst>(&I)) {
+ // Check if this a alloca, in which case we treat it as a store of
----------------
nikic wrote:
```suggestion
// Check if this an alloca, in which case we treat it as a store of
```
https://github.com/llvm/llvm-project/pull/116645
More information about the llvm-commits
mailing list