| Issue |
239183
|
| Summary |
[X86] AVX2 should use GATHER when vectorizing for CodeSize
|
| Labels |
backend:X86,
llvm:SLPVectorizer,
backend:X86 Scheduler+Cost Models,
optimization:AMDCPU
|
| Assignees |
|
| Reporter |
RKSimon
|
Mentioned at x86 round table.
X86TTIImpl::isLegalMaskedGather is currently hidden behind a supportsGather/preferGather check that makes prevents gather due to performance issues.
However, for -Os/Oz builds, SLP can now target TCK_CodeSize instead of TCK_RecipThroughput - under these circumstances using gather can significantly help (performance is not the target metric here).
isLegalMaskedGather/Scatter should not be making decisions regarding legality based off performance - instead getGatherScatterOpCost should be handling that for TCK_RecipThroughput/Latency cases, preferably by returning INVALID (although we need to confirm SLP will handle that correctly).
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs