summaryrefslogtreecommitdiff
path: root/gcc/tree-scalar-evolution.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r--gcc/tree-scalar-evolution.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c
index c1e0736e0b0..d88bb1aa861 100644
--- a/gcc/tree-scalar-evolution.c
+++ b/gcc/tree-scalar-evolution.c
@@ -3039,7 +3039,7 @@ analyze_scalar_evolution_for_all_loop_phi_nodes (VEC(gimple,heap) **exit_conditi
for (psi = gsi_start_phis (bb); !gsi_end_p (psi); gsi_next (&psi))
{
phi = gsi_stmt (psi);
- if (is_gimple_reg (PHI_RESULT (phi)))
+ if (!virtual_operand_p (PHI_RESULT (phi)))
{
chrec = instantiate_parameters
(loop,
@@ -3328,7 +3328,7 @@ scev_const_prop (void)
phi = gsi_stmt (psi);
name = PHI_RESULT (phi);
- if (!is_gimple_reg (name))
+ if (virtual_operand_p (name))
continue;
type = TREE_TYPE (name);
@@ -3404,7 +3404,7 @@ scev_const_prop (void)
phi = gsi_stmt (psi);
rslt = PHI_RESULT (phi);
def = PHI_ARG_DEF_FROM_EDGE (phi, exit);
- if (!is_gimple_reg (def))
+ if (virtual_operand_p (def))
{
gsi_next (&psi);
continue;