From: Michael Beck Date: Thu, 2 Oct 2008 13:55:27 +0000 (+0000) Subject: reduce the number of created Confirms X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=88feab163b4e857b1f5657f016bf3c90354b7f3b;p=libfirm reduce the number of created Confirms [r22414] --- 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;