From 88feab163b4e857b1f5657f016bf3c90354b7f3b Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 2 Oct 2008 13:55:27 +0000 Subject: [PATCH] reduce the number of created Confirms [r22414] --- ir/ana/irconsconfirm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ir/ana/irconsconfirm.c b/ir/ana/irconsconfirm.c index 605246782..fa8d7edc9 100644 --- a/ir/ana/irconsconfirm.c +++ b/ir/ana/irconsconfirm.c @@ -474,6 +474,13 @@ static void insert_non_null(ir_node *ptr, ir_node *block, env_t *env) { * Checks if a node is a non-null Confirm. */ static int is_non_null_Confirm(const ir_node *ptr) { + /* + * While a SymConst is not a Confirm, it is non-null + * anyway. This helps to reduce the number of + * constructed Confirms. + */ + if (is_SymConst_addr_ent(ptr)) + return 0; for (;;) { if (! is_Confirm(ptr)) return 0; -- 2.20.1