OSDN Git Service

[MachineCombiner] Work with itineraries
authorHal Finkel <hfinkel@anl.gov>
Wed, 15 Jul 2015 08:22:23 +0000 (08:22 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 15 Jul 2015 08:22:23 +0000 (08:22 +0000)
commitb2a353c753f9e9f527e172aa31d196d133ea8c70
treeb90f48bef1f617def146dc6e50adc77495cf5a53
parentec223f1217da16079ae6691c86b2e1e90ef130a8
[MachineCombiner] Work with itineraries

MachineCombiner predicated its use of scheduling-based metrics on
hasInstrSchedModel(), but useful conclusions can be drawn from pipeline
itineraries as well. Almost all of the logic (except for resource tracking in
preservesResourceLen) can be used if we have an itinerary, so enable it in that
case as well.

This will be used by the PowerPC backend in an upcoming commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242277 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetSchedule.h
lib/CodeGen/MachineCombiner.cpp