From 5dd3e650f5d268e537357dff93c2a90584a0c117 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Sat, 3 Mar 2001 04:19:50 +0000 Subject: [PATCH] combine.c (try_combine): If split with mode-changed scratch register didn't work, try the original mode. * combine.c (try_combine): If split with mode-changed scratch register didn't work, try the original mode. From-SVN: r40201 --- gcc/ChangeLog | 5 +++++ gcc/combine.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37f188048d2..363f2175f48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat Mar 3 04:17:17 2001 J"orn Rennecke + + * combine.c (try_combine): If split with mode-changed scratch + register didn't work, try the original mode. + Sat Mar 3 03:46:47 2001 J"orn Rennecke * tm.texi: Change STRUCT_FORCE_BLK to MEMBER_TYPE_FORCES_BLK. diff --git a/gcc/combine.c b/gcc/combine.c index a3b96400f7a..bf6a1eec5d8 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -2147,6 +2147,15 @@ try_combine (i3, i2, i1, new_direct_jump_p) gen_rtx_CLOBBER (VOIDmode, ni2dest))), i3); + /* If the split with the mode-changed register didn't work, try + the original register. */ + if (! m_split && ni2dest != i2dest) + m_split = split_insns (gen_rtx_PARALLEL + (VOIDmode, + gen_rtvec (2, newpat, + gen_rtx_CLOBBER (VOIDmode, + i2dest))), + i3); } if (m_split && GET_CODE (m_split) != SEQUENCE) -- 2.30.2