Skip to content

Commit

Permalink
Tweak generic mcpu handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVlx committed Nov 18, 2024
1 parent c7be46f commit ed9f19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
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() == "generic") &&
if ((ST->getCPU().empty() || ST->getCPU().starts_with("generic")) &&
!ST->getFeatureString().contains("+wavefrontsize"))
break;
return IC.replaceInstUsesWith(
Expand Down

0 comments on commit ed9f19f

Please sign in to comment.