The buildvector cost for the case shown in the test should be 0 but it is -1, causing the code to get vectorized, whenit shouldn't.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
LG, with a nit.
llvm/test/Transforms/SLPVectorizer/X86/buildvector-float-and-extract-lane1.ll | ||
---|---|---|
5 | Add a cost analysis to the test. |
llvm/test/Transforms/SLPVectorizer/X86/buildvector-float-and-extract-lane1.ll | ||
---|---|---|
5 | What do you mean? |
llvm/test/Transforms/SLPVectorizer/X86/buildvector-float-and-extract-lane1.ll | ||
---|---|---|
5 | Check llvm/test/Transforms/SLPVectorizer/X86/extractelement-multiple-uses.ll as an example |
llvm/test/Transforms/SLPVectorizer/X86/buildvector-float-and-extract-lane1.ll | ||
---|---|---|
5 | Is this getting updated automatically with update_test_checks.py? I had to add it by hand. |
llvm/test/Transforms/SLPVectorizer/X86/buildvector-float-and-extract-lane1.ll | ||
---|---|---|
5 | IIRC, no, need to update it manually. |
Add a cost analysis to the test.