[llvm] [LICM] Allow hoisting of InsertElementInst's past non-hoistable InsertElementInsts (PR #200532)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 06:10:11 PDT 2026
================
@@ -1058,6 +1074,82 @@ bool llvm::hoistRegion(DomTreeNode *N, AAResults *AA, LoopInfo *LI,
return Changed;
}
+static InsertElementInst *canBypassInsert(InsertElementInst *CurrIns,
+ Loop *CurLoop,
+ SmallSet<uint64_t, 4> &SeenIndices) {
+ // Must have constant insertion lane
----------------
nikic wrote:
```suggestion
// Must have constant insertion lane.
```
etc
https://github.com/llvm/llvm-project/pull/200532
More information about the llvm-commits
mailing list