From 3d1e5b15ead87939b8f0d941c88d7c412202ee51 Mon Sep 17 00:00:00 2001
From: Russel Arbore <russel.jma@gmail.com>
Date: Tue, 25 Feb 2025 11:37:51 -0600
Subject: [PATCH] Outline constants as well

---
 juno_samples/edge_detection/src/cpu.sch | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/juno_samples/edge_detection/src/cpu.sch b/juno_samples/edge_detection/src/cpu.sch
index a1974d05..6f1ee14b 100644
--- a/juno_samples/edge_detection/src/cpu.sch
+++ b/juno_samples/edge_detection/src/cpu.sch
@@ -45,7 +45,8 @@ fork-tile[4, 1, false, false](par);
 fork-tile[4, 0, false, false](par);
 fork-interchange[1, 2](par);
 let split = fork-split(par);
-let laplacian_estimate_body = outline(split._1_laplacian_estimate.fj2);
+let body = split._1_laplacian_estimate.fj2 | laplacian_estimate.shr1 | laplacian_estimate.shr2;
+let laplacian_estimate_body = outline(body);
 fork-coalesce(laplacian_estimate, laplacian_estimate_body);
 simpl!(laplacian_estimate, laplacian_estimate_body);
 
@@ -61,7 +62,8 @@ fork-tile[4, 1, false, false](par);
 fork-tile[4, 0, false, false](par);
 fork-interchange[1, 2](par);
 let split = fork-split(par);
-let zero_crossings_body = outline(split._2_zero_crossings.fj2);
+let body = split._2_zero_crossings.fj2 | zero_crossings.shr1 | zero_crossings.shr2;
+let zero_crossings_body = outline(body);
 fork-coalesce(zero_crossings, zero_crossings_body);
 simpl!(zero_crossings, zero_crossings_body);
 
-- 
GitLab