summaryrefslogtreecommitdiffstats
path: root/gcc/tree-gimple.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-gimple.c')
-rw-r--r--gcc/tree-gimple.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/tree-gimple.c b/gcc/tree-gimple.c
index 82bbf7acea4..3b70905cf84 100644
--- a/gcc/tree-gimple.c
+++ b/gcc/tree-gimple.c
@@ -266,11 +266,12 @@ is_gimple_reg_type (tree type)
bool
is_gimple_reg (tree t)
{
- var_ann_t ann;
-
if (TREE_CODE (t) == SSA_NAME)
t = SSA_NAME_VAR (t);
+ if (MTAG_P (t))
+ return false;
+
if (!is_gimple_variable (t))
return false;
@@ -305,12 +306,6 @@ is_gimple_reg (tree t)
if (TREE_CODE (TREE_TYPE (t)) == COMPLEX_TYPE)
return DECL_COMPLEX_GIMPLE_REG_P (t);
- /* Some compiler temporaries are created to be used exclusively in
- virtual operands (currently memory tags and sub-variables).
- These variables should never be considered GIMPLE registers. */
- if (DECL_ARTIFICIAL (t) && (ann = var_ann (t)) != NULL)
- return ann->mem_tag_kind == NOT_A_TAG;
-
return true;
}
OpenPOWER on IntegriCloud