mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Merge pull request #84045 from MAJKFL/new-sil-licm-pass-copy-ownership"
This reverts commita5c6156525, reversing changes made to2b6ea81b9e.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user