forked from OSchip/llvm-project
[AMDGPU] Always enable XNACK feature when support is explicitly requested
Differential Revision: https://reviews.llvm.org/D74630
This commit is contained in:
parent
4af3be7b04
commit
07824e65bf
|
@ -150,7 +150,9 @@ GCNSubtarget::initializeSubtargetDependencies(const Triple &TT,
|
||||||
|
|
||||||
HasFminFmaxLegacy = getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS;
|
HasFminFmaxLegacy = getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS;
|
||||||
|
|
||||||
if (DoesNotSupportXNACK && EnableXNACK) {
|
// Disable XNACK on targets where it is not enabled by default unless it is
|
||||||
|
// explicitly requested.
|
||||||
|
if (!FS.contains("+xnack") && DoesNotSupportXNACK && EnableXNACK) {
|
||||||
ToggleFeature(AMDGPU::FeatureXNACK);
|
ToggleFeature(AMDGPU::FeatureXNACK);
|
||||||
EnableXNACK = false;
|
EnableXNACK = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue