Skip to content
Commit 03aa967c authored by Craig Topper's avatar Craig Topper
Browse files

[CostModel][X86][ARM] Teach getCastInstrCost to include the splitting factor...

[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

Previously, we just always returned 1. But that ignores that we have to do the operation for each subvector or scalar component.

Differential Revision: https://reviews.llvm.org/D78824
parent ee9c53d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment