[llvm-dev] DFAPacketizer, Scheduling and LoadLatency
Rail Shafigulin via llvm-dev
llvm-dev at lists.llvm.org
Thu Jan 7 13:26:08 PST 2016
>
> I'm not sure exactly what's going on in your case. You can try to see if
> this is the function that causes the "2" to be returned.
>
> unsigned TargetInstrInfo::
> getInstrLatency(const InstrItineraryData *ItinData,
> const MachineInstr *MI,
> unsigned *PredCost) const {
> // Default to one cycle for no itinerary. However, an "empty" itinerary
> may
> // still have a MinLatency property, which getStageLatency checks.
> if (!ItinData)
> return MI->mayLoad() ? 2 : 1;
>
> return ItinData->getStageLatency(MI->getDesc().getSchedClass());
>
> }
>
>
> -Krzysztof
>
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
> by The Linux Foundation
>
That's exactly it. Thanks for the explanation!
--
Rail Shafigulin
Software Engineer
Esencia Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160107/645e18a8/attachment.html>
More information about the llvm-dev
mailing list