[PATCH] D144779: [X86] Add tests for replacing `{v}permilps` -> `{v}shufps/{v}pshufd`; NFC
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 26 12:06:29 PST 2023
goldstein.w.n added a comment.
In D144779#4153888 <https://reviews.llvm.org/D144779#4153888>, @RKSimon wrote:
> In D144779#4153866 <https://reviews.llvm.org/D144779#4153866>, @goldstein.w.n wrote:
>
>> In D144779#4153399 <https://reviews.llvm.org/D144779#4153399>, @RKSimon wrote:
>>
>>> In D144779#4153376 <https://reviews.llvm.org/D144779#4153376>, @RKSimon wrote:
>>>
>>>> In D144779#4152876 <https://reviews.llvm.org/D144779#4152876>, @goldstein.w.n wrote:
>>>>
>>>>> In D144779#4152616 <https://reviews.llvm.org/D144779#4152616>, @RKSimon wrote:
>>>>>
>>>>>> You might be better off splitting this into tuning-shuffle-permilps.ll (although keep AVX512 test coverage here as well) and tuning-shuffle-permilps-avx512.ll
>>>>>
>>>>> What do you mean? As in move the masked-predicate versions to a seperate test file and keep `avx512` targets? Or something else?
>>>>
>>>> The 512-bit and masked predicate cases - I'm also concerned whether the Z128/Z256 cases are being correctly tested or the evex-vec pass has already converted them to the regular xmm/ymm variants
>>>
>>> The tuning pass is before evex-vex so we should be OK - it might be worth adding to the avx512 file a single additional RUN for "-mcpu=x86-86-v4 --show-mc-encoding" that greps that we have no "EVEX TO VEX Compression" strings
>>
>> I don't think this works. Even if x86fixupinsttuning runs first, even to vex compression will eventually run and be in the output.
>
> What about -stop-before=x86-evex-to-vex-compress ? (Sorry I haven't used this much before)
In D143787 <https://reviews.llvm.org/D143787> we assert the order of passes in `llvm/test/CodeGen/X86/opt-pipeline.ll` and we have:
...
; CHECK-NEXT: X86 Fixup Inst Tuning
; CHECK-NEXT: Compressing EVEX instrs to VEX encoding when possible
...
So that should be sufficient for ordering no?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144779/new/
https://reviews.llvm.org/D144779
More information about the llvm-commits
mailing list