This patch experimentally enables the gather/scatter intrinsics for PowerPC to catch more LoopVectorize and SLPVectorize opportunities.
Both LoopVectorize and SLPVectorize call a query called isLegalMaskedGather. By setting this to true, we can enable more vectorization. We currently do not have any lowering for these instrinsics, so this patch also sets the hook forceScalarizeMaskedGather to true. The pass ScalarizeMaskedMemIntrin will then lower the intrinsic by scalarizing it. The next steps will be to implement more optimal lowering rather than relying on ScalarizeMaskedMemIntrin.
Details
Details
Diff Detail
Diff Detail