From 7e36276692e5f44563be8ab46a21437936bc5880 Mon Sep 17 00:00:00 2001
From: rarbore2 <rarbore2@illinois.edu>
Date: Sun, 15 Dec 2024 17:25:25 -0600
Subject: [PATCH] Fix outlining again

---
 hercules_opt/src/outline.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hercules_opt/src/outline.rs b/hercules_opt/src/outline.rs
index 915b11c9..7a334870 100644
--- a/hercules_opt/src/outline.rs
+++ b/hercules_opt/src/outline.rs
@@ -253,6 +253,10 @@ pub fn outline(
             if let Node::Phi { control, data } = &mut node
                 && *control == top_node
             {
+                for datum in data.iter_mut() {
+                    *datum = convert_id(*datum);
+                }
+
                 // If this node is a phi on the top node, we need to replace the
                 // inputs corresponding to outside partition predecessors with a
                 // single data input (with the corresponding control input of
-- 
GitLab