This patch extends the gather/scatter pass in MVEGatherScatterLowering.cpp to enable the transformation of masked scatters into calls to arm's masked scatter intrinsic.
|542 ↗||(On Diff #238523)|
This can just call isLegalMaskedGather, like we do for isLegalMaskedStore
This looks like it's gone back to an older version?
This might be better as
bool Changed = false; for (IntrinsicInst *I : Gathers) Changed |= lowerGather(I); for (IntrinsicInst *I : Scatters) Changed |= lowerScatter(I);
As we might not be altering the gathers/scatters that we see, leaving them for the legalise pass to scalarise.