diff options
Diffstat (limited to 'src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp b/src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp index 0601fbc0aa6..b4d2a2f5ea1 100644 --- a/src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp +++ b/src/gallium/drivers/radeon/AMDGPUTargetMachine.cpp @@ -135,9 +135,7 @@ bool AMDGPUPassConfig::addInstSelector() { bool AMDGPUPassConfig::addPreRegAlloc() { const AMDILSubtarget &ST = TM->getSubtarget<AMDILSubtarget>(); - if (ST.device()->getGeneration() <= AMDILDeviceInfo::HD6XXX) { - PM->add(createR600LowerInstructionsPass(*TM)); - } else { + if (ST.device()->getGeneration() > AMDILDeviceInfo::HD6XXX) { PM->add(createSIAssignInterpRegsPass(*TM)); } PM->add(createAMDGPULowerInstructionsPass(*TM)); @@ -154,12 +152,8 @@ bool AMDGPUPassConfig::addPreSched2() { } bool AMDGPUPassConfig::addPreEmitPass() { - const AMDILSubtarget &ST = TM->getSubtarget<AMDILSubtarget>(); PM->add(createAMDILCFGPreparationPass(*TM)); PM->add(createAMDILCFGStructurizerPass(*TM)); - if (ST.device()->getGeneration() == AMDILDeviceInfo::HD7XXX) { - PM->add(createSIPropagateImmReadsPass(*TM)); - } return false; } |