Skip to content

[SystemZ][TTI]Wrong costs for insertelement with even/odd indices #135346

@alexey-bataev

Description

@alexey-bataev

Looks like there is bug in SystemZTargetTransformInfo.cpp, SystemZTTIImpl::getVectorInstrCost:

if (Val->isIntOrIntVectorTy(BitWidth: 64))
  return ((Index % 2 == 0) ? 1 : 0);

It returns cost 1 for insertion into lane 0 and cost 0 for insertion into lane 1, though looks like SystemZTTIImpl::getScalarizationOverhead implements different logic

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions