this patch updates the cost of addq\subq (add\subtract of vectors of 64bits)
based on the performance numbers of SLM arch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
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.
Comment Actions
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?
Comment Actions
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
Comment Actions
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 | ||
---|---|---|
1 ↗ | (On Diff #101694) | The vectorizer is clearly doing something wrong if it's generating a 64-bit multiply for this loop... might want to clarify the comment. |
Comment Actions
fixed test comment
test/Transforms/LoopVectorize/X86/slm-no-vectorize.ll | ||
---|---|---|
1 ↗ | (On Diff #101694) | fixed |
Comment Actions
LGTM with one minor about the comment in the lv test
test/Transforms/LoopVectorize/X86/slm-no-vectorize.ll | ||
---|---|---|
5 ↗ | (On Diff #102643) | Very minor but it might be tidier if the comment is put after the RUN target lines. |