summaryrefslogtreecommitdiffhomepage
path: root/ir/opt
diff options
context:
space:
mode:
authorElias Aebi <elias.aebi@student.kit.edu>2018-04-03 21:01:51 +0200
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-24 17:42:00 +0100
commitc266a9ee2a94a86c90f8a885be5a19712e077ac9 (patch)
tree4c48fb6615304e89acc91d9be137e147472956b0 /ir/opt
parente999e12a7186c8d520ef1eeda2a41a9fb52d56d6 (diff)
LCSSA: ignore keep-alive edges
Diffstat (limited to 'ir/opt')
-rw-r--r--ir/opt/lcssa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/opt/lcssa.c b/ir/opt/lcssa.c
index 917ab1a..0a59a6d 100644
--- a/ir/opt/lcssa.c
+++ b/ir/opt/lcssa.c
@@ -65,7 +65,8 @@ static void insert_phis_for_edge(ir_node *node, int n)
static void insert_phis_for_node(ir_node *const node, void *const env)
{
(void)env;
- if (is_Block(node))
+ // ignore blocks and keep-alive edges
+ if (is_Block(node) || is_End(node))
return;
int const arity = get_irn_arity(node);
for (int i = 0; i < arity; ++i) {