aboutsummaryrefslogtreecommitdiff
path: root/gcc/ssa.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ssa.c')
-rw-r--r--gcc/ssa.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/gcc/ssa.c b/gcc/ssa.c
index 406928b..1ba8e0c 100644
--- a/gcc/ssa.c
+++ b/gcc/ssa.c
@@ -924,20 +924,17 @@ rename_insn_1 (ptr, data)
{
rtx new_reg = ssa_rename_to_lookup (x);
- if (new_reg != RENAME_NO_RTX)
+ if (new_reg != RENAME_NO_RTX && new_reg != NULL_RTX)
{
- if (new_reg != NULL_RTX)
- {
- if (GET_MODE (x) != GET_MODE (new_reg))
- abort ();
- *ptr = new_reg;
- }
- else
- {
- /* Undefined value used, rename it to a new pseudo register so
- that it cannot conflict with an existing register */
- *ptr = gen_reg_rtx (GET_MODE(x));
- }
+ if (GET_MODE (x) != GET_MODE (new_reg))
+ abort ();
+ *ptr = new_reg;
+ }
+ else
+ {
+ /* Undefined value used, rename it to a new pseudo register so
+ that it cannot conflict with an existing register. */
+ *ptr = gen_reg_rtx (GET_MODE (x));
}
}
return -1;