Skip to content

Commit f499138

Browse files
committed
SwiftCompilerSources: add UseList ignoreTypeDependence
1 parent 7b6fd23 commit f499138

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SwiftCompilerSources/Sources/SIL/Operand.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ extension Sequence where Element == Operand {
134134

135135
public var isSingleUse: Bool { singleUse != nil }
136136

137+
public var ignoreTypeDependence: LazyFilterSequence<Self> {
138+
self.lazy.filter({!$0.isTypeDependent})
139+
}
140+
137141
public var ignoreDebugUses: LazyFilterSequence<Self> {
138142
self.lazy.filter { !($0.instruction is DebugValueInst) }
139143
}

0 commit comments

Comments
 (0)