Implements constant folding of the transformational intrinsic function SPREAD(). Differential Revision: https://reviews.llvm.org/D112739