forked from OSchip/llvm-project
R600/SI: Don't run SI passes on R600 subtargets
llvm-svn: 223252
This commit is contained in:
parent
e8fb6937ba
commit
92105e87e8
|
@ -188,8 +188,8 @@ bool AMDGPUPassConfig::addPreRegAlloc() {
|
|||
bool AMDGPUPassConfig::addPostRegAlloc() {
|
||||
const AMDGPUSubtarget &ST = TM->getSubtarget<AMDGPUSubtarget>();
|
||||
|
||||
addPass(createSIShrinkInstructionsPass());
|
||||
if (ST.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) {
|
||||
addPass(createSIShrinkInstructionsPass());
|
||||
addPass(createSIInsertWaits(*TM));
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue