this patch updates the cost of addq\subq (add\subtract of vectors of 64bits)
based on the performance numbers of SLM arch.
Details
Diff Detail
Event Timeline
You might want to add a slm target to the llvm\test\Transforms\SLPVectorizer\X86\arith-add.ll, arith-mul.ll and arith-sub.ll tests as well.
You mean to split the slm-arith-costs.ll test to those files or to add extra test cases via checking those tests on SLM also?
I mean adding an extra slm specific 'RUN' pass to each file:
; RUN: opt < %s -mtriple=x86_64-unknown -mcpu=slm -basicaa -slp-vectorizer -S | FileCheck %s --check-prefix=CHECK --check-prefix=SLM
Simon I saw that you have added that to the tests.
Is there is a need to do something else?
test/Transforms/LoopVectorize/X86/slm-no-vectorize.ll | ||
---|---|---|
2 | The vectorizer is clearly doing something wrong if it's generating a 64-bit multiply for this loop... might want to clarify the comment. |
LGTM with one minor about the comment in the lv test
test/Transforms/LoopVectorize/X86/slm-no-vectorize.ll | ||
---|---|---|
5 | Very minor but it might be tidier if the comment is put after the RUN target lines. |
The vectorizer is clearly doing something wrong if it's generating a 64-bit multiply for this loop... might want to clarify the comment.