Previously, we just always returned 1. But that ignores that we have to do the operation for each subvector or scalar component.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D78824
[CostModel][X86][ARM] Teach getCastInstrCost to include the splitting factor when handling operations that type legalize to the same number of subvectors or scalar components ClosedPublic Authored by craig.topper on Apr 24 2020, 12:22 PM.
Details Summary Previously, we just always returned 1. But that ignores that we have to do the operation for each subvector or scalar component.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Apr 24 2020, 12:54 PM Closed by commit rG03aa967c0d38: [CostModel][X86][ARM] Teach getCastInstrCost to include the splitting factor… (authored by craig.topper). · Explain WhyApr 24 2020, 2:05 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 259954 llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/test/Analysis/CostModel/ARM/cast.ll
llvm/test/Analysis/CostModel/X86/fptosi.ll
|