From 1892d62c76e8c13cdca3b419d8079f8d1d1654c7 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Mon, 28 Nov 2022 22:25:03 -0800 Subject: [PATCH] Stackifier produces control flow for simple-interpreter test case. --- src/backend/stackify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/stackify.rs b/src/backend/stackify.rs index 45b17b1..203de6d 100644 --- a/src/backend/stackify.rs +++ b/src/backend/stackify.rs @@ -213,7 +213,7 @@ impl<'a, 'b> Context<'a, 'b> { // the target is either a merge block, or is a backward branch // (by RPO number). if self.merge_nodes.contains(&target.block) - || self.rpo.rev[target.block] < self.rpo.rev[source] + || self.rpo.rev[target.block] <= self.rpo.rev[source] { let index = self.resolve_target(target.block); self.do_blockparam_transfer(