aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index 7686f81..d78c60f 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -2782,19 +2782,12 @@ is_gimple_id (tree t)
bool
is_gimple_reg (tree t)
{
- if (TREE_CODE (t) == SSA_NAME)
- {
- t = SSA_NAME_VAR (t);
- if (TREE_CODE (t) == VAR_DECL
- && VAR_DECL_IS_VIRTUAL_OPERAND (t))
- return false;
- return true;
- }
-
- if (TREE_CODE (t) == VAR_DECL
- && VAR_DECL_IS_VIRTUAL_OPERAND (t))
+ if (virtual_operand_p (t))
return false;
+ if (TREE_CODE (t) == SSA_NAME)
+ return true;
+
if (!is_gimple_variable (t))
return false;