]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: Fuse get_insns with end_sequence.
authorGeorg-Johann Lay <avr@gjlay.de>
Sat, 19 Jul 2025 11:32:48 +0000 (13:32 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Sat, 19 Jul 2025 11:38:55 +0000 (13:38 +0200)
gcc/
* config/avr/avr-passes.cc (avr_optimize_casesi): Fuse
get_insns() with end_sequence().

gcc/config/avr/avr-passes.cc

index 284f49d14680837680c5e536ea7c8664528565df..6a88a2740bc52828441cdfb58991c7bf92b59a2a 100644 (file)
@@ -4120,9 +4120,8 @@ avr_optimize_casesi (rtx_insn *insns[5], rtx *xop)
   JUMP_LABEL (cbranch) = xop[4];
   ++LABEL_NUSES (xop[4]);
 
-  rtx_insn *seq1 = get_insns ();
   rtx_insn *last1 = get_last_insn ();
-  end_sequence ();
+  rtx_insn *seq1 = end_sequence ();
 
   emit_insn_after (seq1, insns[2]);
 
@@ -4141,9 +4140,8 @@ avr_optimize_casesi (rtx_insn *insns[5], rtx *xop)
 
   emit_insn (pat_4);
 
-  rtx_insn *seq2 = get_insns ();
   rtx_insn *last2 = get_last_insn ();
-  end_sequence ();
+  rtx_insn *seq2 = end_sequence ();
 
   emit_insn_after (seq2, insns[3]);