================ @@ -7254,6 +7255,10 @@ static SDValue lowerBuildVectorAsBroadcast(BuildVectorSDNode *BVOp, EVT CVT = Ld.getValueType(); assert(!CVT.isVector() && "Must not broadcast a vector type"); + // 512 bit vpbroadcastw is only available with AVX512BW + if (ScalarSize == 16 && IsGT256 && !Subtarget.hasBWI()) + return SDValue(); ---------------- phoebewang wrote:
The problem only exists for `v32f16` which is not handled by `PreprocessISelDAG`. Maybe we need add `v32f16` support there. https://github.com/llvm/llvm-project/pull/73186 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits