The new flag -aarch64-insert-extract-base-cost can be used to
set the value of AArch64Subtarget::getVectorInsertExtractBaseCost(),
for the purposes of experimentation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
- Add tests:
- Switch to utils/update_analyze_test_checks.py
- Increasing
- Decreasing
- Underflow
- FP
Comment Actions
I think it would be clearer if the option just override the existing value, as opposed to being an adjustment from it. Otherwise it might start to mean different things as VectorInsertExtractBaseCost changes.
Comment Actions
- Make the flag absolute, per review comment (-aarch64-insert-extract-cost-adjustment => -aarch64-insert-extract-base-cost)
Thanks for the comment, updated.
Comment Actions
In the previous patch I missed that the choice of CPU can override the default
value, and by chance this continued to work. Add a test and fix this.
Comment Actions
Thanks. SGTM
llvm/lib/Target/AArch64/AArch64Subtarget.cpp | ||
---|---|---|
60–62 | You can drop the {} brackets from single statement blocks. |
llvm/lib/Target/AArch64/AArch64Subtarget.cpp | ||
---|---|---|
60–62 | Oops, thanks. |
You can drop the {} brackets from single statement blocks.