Issue |
135346
|
Summary |
[SystemZ][TTI]Wrong costs for insertelement with even/odd indices
|
Labels |
new issue
|
Assignees |
|
Reporter |
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
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs