aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorClinton Popetz <cpopetz@cygnus.com>2000-01-20 00:41:52 +0000
committerClinton Popetz <cpopetz@gcc.gnu.org>2000-01-19 19:41:52 -0500
commitba52f355e32ed5652dd545982dc6baeac06ba5d9 (patch)
tree2b2bd9b4d3ec577036742d8682a566e534b8dc7d /gcc/emit-rtl.c
parent0903fcab883e00dd589e7fec4f26dca9b61b4a29 (diff)
downloadgcc-ba52f355e32ed5652dd545982dc6baeac06ba5d9.zip
gcc-ba52f355e32ed5652dd545982dc6baeac06ba5d9.tar.gz
gcc-ba52f355e32ed5652dd545982dc6baeac06ba5d9.tar.bz2
emit-rtl.c (try_split): Return last_insn if we split the last_insn.
* emit-rtl.c (try_split): Return last_insn if we split the last_insn. From-SVN: r31530
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 3ade3c6..2c76306 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -2258,7 +2258,9 @@ try_split (pat, trial, last)
/* Return either the first or the last insn, depending on which was
requested. */
- return last ? prev_active_insn (after) : next_active_insn (before);
+ return last
+ ? (after ? prev_active_insn (after) : last_insn)
+ : next_active_insn (before);
}
return trial;