reduce the number of created Confirms
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 2 Oct 2008 13:55:27 +0000 (13:55 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 2 Oct 2008 13:55:27 +0000 (13:55 +0000)
[r22414]

ir/ana/irconsconfirm.c

index 6052467..fa8d7ed 100644 (file)
@@ -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;