ARM: Enable MachineScheduler and disable PostRAScheduler for swift.
authorMatthias Braun <matze@braunis.de>
Fri, 17 Jul 2015 01:44:31 +0000 (01:44 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 17 Jul 2015 01:44:31 +0000 (01:44 +0000)
commit2d8315f8066bbce201e9b2c28b7d24915dcbe5f0
tree6de810000cfdd7af9f988349786d0d911cf9932f
parentfb2398d0c43405a6b654c80560e38fb3ccd134b9
ARM: Enable MachineScheduler and disable PostRAScheduler for swift.

This is mostly done to disable the PostRAScheduler which optimizes for
instruction latencies which isn't a good fit for out-of-order
architectures. This also allows to leave out the itinerary table in
swift in favor of the SchedModel ones.

This change leads to performance improvements/regressions by as much as
10% in some benchmarks, in fact we loose 0.4% performance over the
llvm-testsuite for reasons that appear to be unknown or out of the
compilers control. rdar://20803802 documents the investigation of
these effects.

While it is probably a good idea to perform the same switch for the
other ARM out-of-order CPUs, I limited this change to swift as I cannot
perform the benchmark verification on the other CPUs.

Differential Revision: http://reviews.llvm.org/D10513

llvm-svn: 242500
llvm/include/llvm/MC/MCSchedule.h
llvm/lib/Target/ARM/ARMScheduleSwift.td
llvm/lib/Target/ARM/ARMSubtarget.cpp
llvm/lib/Target/ARM/ARMSubtarget.h
llvm/test/CodeGen/ARM/adv-copy-opt.ll
llvm/test/CodeGen/ARM/avoid-cpsr-rmw.ll
llvm/test/CodeGen/ARM/cmpxchg-idioms.ll
llvm/test/CodeGen/ARM/test-sharedidx.ll
llvm/test/CodeGen/ARM/vector-load.ll
llvm/test/CodeGen/ARM/vector-store.ll