Added additional patterns to VABD instruction so that it will be selected in place of VSUB then VABS.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi Meera, two comments:
- you're adding patterns for f16 and f32 vectors, so would be good to cover both cases and thus have tests for vabd.f16 and vabd.f32.
- since we're just matchings a fabs + fsub patterrn, can you reduce the test case?
Comment Actions
Added second test for f16 case and made test cases much shorter. Also moved position of pattern definition so that the size is handled clearly
Comment Actions
Cheers, this is exactly what I was expecting, one nit inlined.
llvm/test/CodeGen/Thumb2/mve-vabd.ll | ||
---|---|---|
3 | For bonus points: probably best to add an extra RUN line with just -mattr=+mve so that we test this case too, i.e. HasMVEFloat isn't set. |
llvm/test/CodeGen/Thumb2/mve-vabd.ll | ||
---|---|---|
26 | one more question: is it strictly necessary to add the fast attribute? |
Comment Actions
Removed fast attributes and added test cases for when the floating point flag is not set.
For bonus points: probably best to add an extra RUN line with just -mattr=+mve so that we test this case too, i.e. HasMVEFloat isn't set.