File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
SwiftCompilerSources/Sources/Optimizer
InstructionSimplification Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -293,13 +293,6 @@ private extension Value {
293
293
return self
294
294
}
295
295
}
296
-
297
- var lookThroughTruncOrBitCast : Value {
298
- if let truncOrBitCast = self as? BuiltinInst , truncOrBitCast. id == . TruncOrBitCast {
299
- return truncOrBitCast. arguments [ 0 ]
300
- }
301
- return self
302
- }
303
296
}
304
297
305
298
private extension BuiltinInst {
Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ extension Value {
45
45
}
46
46
}
47
47
48
+ var lookThroughTruncOrBitCast : Value {
49
+ if let truncOrBitCast = self as? BuiltinInst , truncOrBitCast. id == . TruncOrBitCast {
50
+ return truncOrBitCast. arguments [ 0 ]
51
+ }
52
+ return self
53
+ }
54
+
48
55
func isInLexicalLiverange( _ context: some Context ) -> Bool {
49
56
var worklist = ValueWorklist ( context)
50
57
defer { worklist. deinitialize ( ) }
You can’t perform that action at this time.
0 commit comments