From 518064248f79c148dddef698c33b1474c104b647 Mon Sep 17 00:00:00 2001
From: Russel Arbore <russel.jma@gmail.com>
Date: Tue, 18 Feb 2025 12:13:42 -0600
Subject: [PATCH] Whoops

---
 hercules_opt/src/gcm.rs       | 7 +++----
 juno_samples/cava/src/cpu.sch | 4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/hercules_opt/src/gcm.rs b/hercules_opt/src/gcm.rs
index 446b3184..f2405893 100644
--- a/hercules_opt/src/gcm.rs
+++ b/hercules_opt/src/gcm.rs
@@ -486,11 +486,10 @@ fn basic_blocks(
         // Look between the LCA and the schedule early location to place the
         // node.
         let schedule_early = schedule_early[id.idx()].unwrap();
+        // If the node has no users, then it doesn't really matter where we
+        // place it - just place it at the early placement.
         let schedule_late = lca.unwrap_or(schedule_early);
-        let mut chain = dom
-            // If the node has no users, then it doesn't really matter where we
-            // place it - just place it at the early placement.
-            .chain(schedule_late, schedule_early);
+        let mut chain = dom.chain(schedule_late, schedule_early);
 
         if let Some(mut location) = chain.next() {
             while let Some(control_node) = chain.next() {
diff --git a/juno_samples/cava/src/cpu.sch b/juno_samples/cava/src/cpu.sch
index 635de17a..6cd33a3b 100644
--- a/juno_samples/cava/src/cpu.sch
+++ b/juno_samples/cava/src/cpu.sch
@@ -123,9 +123,9 @@ simpl!(fuse5);
 
 delete-uncalled(*);
 simpl!(*);
-xdot[true](fuse1);
 
-simpl!(fuse1);
+
+fork-split(fuse1);
 unforkify(fuse1);
 fork-split(fuse2);
 unforkify(fuse2);
-- 
GitLab