After D107793 reverse of a splat vector is eliminated.
Added a few more cases that should be simplified.
https://godbolt.org/z/6oc1dPdE9
Not sure if it is appropriate to do this here or better to move this to the target backend.
Differential D108065
[InstSimplify][AArch64] Eliminate vector reverse of ptrue/dupx intrinsics mnadeem on Aug 13 2021, 7:05 PM. Authored by
Details
After D107793 reverse of a splat vector is eliminated. Not sure if it is appropriate to do this here or better to move this to the target backend.
Diff Detail Event Timeline
Comment Actions dup.x is now canonicalized to IR splat so reverse shouldn't be an issue now. |
To be honest, I'm not sure if this is the right place to be putting AArch64 specific intrinsics. Perhaps lib/Target/AArch64/SVEIntrinsicsOpt.cpp is a better location on this occasion?