================ @@ -1024,6 +1024,15 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const { } break; } + case Intrinsic::amdgcn_wavefrontsize: { + // TODO: this is a workaround for the pseudo-generic target one gets with no + // specified mcpu, which spoofs its wave size to 64; it should be removed. + if ((ST->getCPU().empty() || ST->getCPU().starts_with("generic")) && ---------------- jhuber6 wrote:
Still don't know if this is even worth checking, but I suppose we could codify that `-mcpu=""` and `-mcpu="generic"` are the same thing? My understanding is that generic was some testing thing. https://github.com/llvm/llvm-project/pull/114481 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits