re PR rtl-optimization/65761 (internal compiler error: in patch_jump_insn, at cfgrtl...
authorJakub Jelinek <jakub@redhat.com>
Tue, 14 Apr 2015 13:24:53 +0000 (15:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 14 Apr 2015 13:24:53 +0000 (15:24 +0200)
PR rtl-optimization/65761
* cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).

From-SVN: r222090

gcc/ChangeLog
gcc/cfgrtl.c

index 6dd82e337c58257d067e01d9d798e8107d0c27b2..33c3d92764a7f2fa2bb6596b102de07c98f813ab 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-14  Jakub Jelinek  <jakub@redhat.com>
+
+       PR rtl-optimization/65761
+       * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
+       get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
+
 2015-04-14  Richard Biener  <rguenther@suse.de>
 
        * graphite-scop-detection.c: Do not include cp/cp-tree.h.
index 0e27eddd5a9b3450a3ba5fb13f06c500bca95ec9..46fd9588da50521db4a14c0444faf0b4a3286270 100644 (file)
@@ -1928,7 +1928,7 @@ rtl_split_edge (edge edge_in)
               && (edge_in->flags & EDGE_CROSSING))
             {
               after = last_bb_in_partition (edge_in->src);
-              before = NEXT_INSN (BB_END (after));
+              before = get_last_bb_insn (after);
               /* The instruction following the last bb in partition should
                  be a barrier, since it cannot end in a fall-through.  */
               gcc_checking_assert (BARRIER_P (before));