The question appears if we want to use a swap partition on an SSD drive. I think, it would be better (for the SSD) if the deallocated swap space could be trimmed, because trimming the not used blocks enables the underlying SSD electronics to tune its wear leveling.
Google seems silent on the matter.
Alternatively, a regular blkdiscard command (and re-creating the swap space with mkswap) would be a feasible workaround, although it would be sub-optimal.