Do not allocate PRE value-ids in get_expr_value_id

Submitted by Richard Guenther on Nov. 30, 2012, 12:31 p.m.

Details

Message ID alpine.LNX.2.00.1211301330580.8142@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Guenther Nov. 30, 2012, 12:31 p.m.
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  <rguenther@suse.de>

	* tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids
	here.

Patch hide | download patch | download mbox

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;