Revert "Merge pull request #84045 from MAJKFL/new-sil-licm-pass-copy-ownership"

This reverts commit a5c6156525, reversing
changes made to 2b6ea81b9e.
This commit is contained in:
Jakub Florek
2025-09-17 15:52:48 +01:00
parent f78a3c7e0a
commit d2cd281d4c
6 changed files with 154 additions and 285 deletions

View File

@@ -107,7 +107,7 @@ extension LoadInst : OnoneSimplifiable, SILCombineSimplifiable {
var cloner = Cloner(cloneBefore: self, context)
defer { cloner.deinitialize() }
let initVal = cloner.cloneRecursively(globalInitValue: globalInitVal)
let initVal = cloner.cloneRecursivelyToGlobal(value: globalInitVal)
uses.replaceAll(with: initVal, context)
// Also erases a builtin "once" on which the global_addr depends on. This is fine