changeset 14845:434ffa574c78

src/pt-jit.cc (jit_block::maybe_split): Correctly mark if split branch is alive
author Max Brister <max@2bass.com>
date Thu, 21 Jun 2012 16:21:47 -0500
parents 709f50069722
children f2117a963c54
files src/pt-jit.cc
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/pt-jit.cc
+++ b/src/pt-jit.cc
@@ -1336,7 +1336,12 @@
       term->stash_argument (idx, split);
       jit_branch *br = split->append (convert.create<jit_branch> (asuccessor));
       replace_in_phi (asuccessor, split);
-      br->infer ();
+
+      if (alive ())
+        {
+          split->mark_alive ();
+          br->infer ();
+        }
 
       return split;
     }