From patchwork Fri Nov 30 12:31:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Do not allocate PRE value-ids in get_expr_value_id Date: Fri, 30 Nov 2012 02:31:46 -0000 From: Richard Guenther X-Patchwork-Id: 202931 Message-Id: To: gcc-patches@gcc.gnu.org Still verifying some of my PRE assumtions by making the code less obscure ... Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2012-11-30 Richard Biener * tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids here. Index: gcc/tree-ssa-pre.c =================================================================== --- gcc/tree-ssa-pre.c (revision 193990) +++ gcc/tree-ssa-pre.c (working copy) @@ -616,7 +616,7 @@ get_expr_value_id (pre_expr expr) switch (expr->kind) { case CONSTANT: - id = get_or_alloc_constant_value_id (PRE_EXPR_CONSTANT (expr)); + id = get_constant_value_id (PRE_EXPR_CONSTANT (expr)); break; case NAME: id = VN_INFO (PRE_EXPR_NAME (expr))->value_id;