The second patch updates the Cortex-A57 scheduler now that we can differentiate betwe...
authorWilco Dijkstra <wdijkstr@arm.com>
Mon, 14 Nov 2016 12:07:03 +0000 (12:07 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Mon, 14 Nov 2016 12:07:03 +0000 (12:07 +0000)
The second patch updates the Cortex-A57 scheduler now that we can differentiate
between shifts and bitfield inserts.  The Cortex-A57 Software Optimization Guide
indicates that BFM operations use the integer multi-cycle pipeline, while ARM
UXTB/H instructions use the Integer 1 or Integer 0 pipelines, so swap the bfm
and extend reservations.  This results in minor scheduling differences.

* config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
(cortex_a57_alu_shift): ...here.

From-SVN: r242385

gcc/ChangeLog
gcc/config/arm/cortex-a57.md

index 07173ab54e88fb0f2b8ee7ea33f8cb4190e09018..e1306dc51d2b4d5aac538e509d00efb6013e6015 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
+       (cortex_a57_alu_shift): ...here.
+
 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
 
        * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
index da461846baa5b28ce3d9c9f731dbfd7becb31a85..63072509e50375929f75c44af900a4803a6285f3 100644 (file)
        (eq_attr "type" "alu_imm,alus_imm,logic_imm,logics_imm,\
                        alu_sreg,alus_sreg,logic_reg,logics_reg,\
                        adc_imm,adcs_imm,adc_reg,adcs_reg,\
-                       adr,bfm,bfx,clz,rbit,rev,alu_dsp_reg,\
+                       adr,bfx,extend,clz,rbit,rev,alu_dsp_reg,\
                        rotate_imm,shift_imm,shift_reg,\
                        mov_imm,mov_reg,\
                        mvn_imm,mvn_reg,\
 ;; ALU ops with immediate shift
 (define_insn_reservation "cortex_a57_alu_shift" 3
   (and (eq_attr "tune" "cortexa57")
-       (eq_attr "type" "extend,\
+       (eq_attr "type" "bfm,\
                        alu_shift_imm,alus_shift_imm,\
                        crc,logic_shift_imm,logics_shift_imm,\
                        mov_shift,mvn_shift"))