OSDN Git Service

[MachineCombiner] Don't use the opcode-only form of computeInstrLatency
authorHal Finkel <hfinkel@anl.gov>
Wed, 5 Aug 2015 07:45:28 +0000 (07:45 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 5 Aug 2015 07:45:28 +0000 (07:45 +0000)
commit7b3dad09cdb7f071589f2d1c0f78c6955577067e
tree33713065ebd72b12c3123f8c39611628fbe1bbdb
parent281c1b093e6caa9151b47b326808f8c2b73afe84
[MachineCombiner] Don't use the opcode-only form of computeInstrLatency

In r242277, I updated the MachineCombiner to work with itineraries, but I
missed a call that is scheduling-model-only (the opcode-only form of
computeInstrLatency). Using the form that takes an MI* allows this to work with
itineraries (and should be NFC for subtargets with scheduling models).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244020 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCombiner.cpp
test/CodeGen/PowerPC/mc-instrlat.ll [new file with mode: 0644]