================ @@ -266,7 +266,7 @@ AMDGPUTargetInfo::AMDGPUTargetInfo(const llvm::Triple &Triple, MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64; CUMode = !(GPUFeatures & llvm::AMDGPU::FEATURE_WGP); - for (auto F : {"image-insts", "gws", "vmem-to-lds-load-insts"}) + for (auto F : {"image-insts", "vmem-to-lds-load-insts"}) ReadOnlyFeatures.insert(F); ---------------- changpeng wrote:
> What does this `ReadOnlyFeatures` do? Prevent clang from writing a feature to the IR. But I can not see much benefit in doing that. https://github.com/llvm/llvm-project/pull/148141 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits