Skip to content

Commit 218ef58

Browse files
committed
Revert "Merge pull request #42242 from eeckstein/escapeinfo"
This reverts commit c05e064, reversing changes made to c1534d5. This caused a regression on Windows.
1 parent f5078e2 commit 218ef58

File tree

79 files changed

+181
-3825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+181
-3825
lines changed

SwiftCompilerSources/Sources/Optimizer/Analysis/AliasAnalysis.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,4 @@ struct AliasAnalysis {
4343
return false
4444
}
4545
}
46-
47-
/// Returns the correct path for address-alias functions.
48-
static func getPtrOrAddressPath(for value: Value) -> EscapeInfo.Path {
49-
let ty = value.type
50-
if ty.isAddress {
51-
// This is the regular case: the path selects any sub-fields of an address.
52-
return EscapeInfo.Path(.anyValueFields)
53-
}
54-
// Some optimizations use the address-alias APIs with non-address SIL values.
55-
// TODO: this is non-intuitive and we should eliminate those API uses.
56-
if ty.isClass {
57-
// If the value is a (non-address) reference it means: all addresses within the class instance.
58-
return EscapeInfo.Path(.anyValueFields).push(.anyClassField)
59-
}
60-
// Any other non-address value means: all addresses of any referenced class instances within the value.
61-
return EscapeInfo.Path(.anyValueFields).push(.anyClassField).push(.anyValueFields)
62-
}
6346
}

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
swift_compiler_sources(Optimizer
1010
AssumeSingleThreaded.swift
11-
ComputeEffects.swift
12-
EscapeInfoDumper.swift
1311
SILPrinter.swift
1412
MergeCondFails.swift
1513
RangeDumper.swift

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/ComputeEffects.swift

Lines changed: 0 additions & 235 deletions
This file was deleted.

0 commit comments

Comments
 (0)