Skip to content

Commit 00fbf4f

Browse files
committed
LocalVariableUtils logging
1 parent 352724e commit 00fbf4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/LocalVariableUtils.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
import SIL
2727

28-
private let verbose = true
28+
private let verbose = false
2929

3030
private func log(_ message: @autoclosure () -> String) {
3131
if verbose {
@@ -732,6 +732,7 @@ extension LocalVariableReachableAccess {
732732
forwardPropagateEffect(in: block, blockInfo: blockInfo, effect: currentEffect, blockList: &blockList,
733733
accessStack: &accessStack)
734734
}
735+
log("Local variable reachable uses: \(accessMap)\n\(accessStack)")
735736
return true
736737
}
737738

0 commit comments

Comments
 (0)