[ssa][be] Fix printing of SSA blocks
Sathya Gunasekaran committed
Oct 27, 2022 at 15:16 UTC
fed106a8ebf40a306daa8cbd5965f0304482f726
1 file changed
+6
-2
compiler/forget/src/HIR/SSAify.ts
+6
-2
@@ -146,11 +146,15 @@ class SSABuilder {
146
for (const [block, state] of this.#states) {
147
text.push(`bb${block.id}:`);
148
for (const [oldId, newId] of state.defs) {
149
- text.push(` \$${oldId}: \$${newId}`);
149
+ text.push(` \$${printIdentifier(oldId)}: \$${printIdentifier(newId)}`);
150
}
151
152
for (const incompletePhi of state.incompletePhis) {
153
- text.push(` iphi \$${incompletePhi.newId} = \$${incompletePhi.oldId}`);
153
+ text.push(
154
+ ` iphi \$${printIdentifier(
155
+ incompletePhi.newId
156
+ )} = \$${printIdentifier(incompletePhi.oldId)}`
157
+ );
158
}
159
}
160