HomePhabricator

[TTI] BasicTTI::getInterleavedMemoryOpCost(): use getScalarizationOverhead()

Authored by RKSimon on Sep 29 2021, 8:41 AM.

Description

[TTI] BasicTTI::getInterleavedMemoryOpCost(): use getScalarizationOverhead()

getScalarizationOverhead() results in a somewhat better cost estimation than counting the insertion/extraction costs directly. Notably, this is still overestimating the costs.

Original Patch by: @lebedev.ri (Roman Lebedev)

Differential Revision: https://reviews.llvm.org/D110713