From 8a8dc6a29d3f763e7469201a39d5cdde43351c9c Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 3 Dec 2014 18:27:05 +0000 Subject: [PATCH] R600/SI: Don't run SI passes on R600 subtargets git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223252 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/AMDGPUTargetMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/R600/AMDGPUTargetMachine.cpp b/lib/Target/R600/AMDGPUTargetMachine.cpp index 9fe97c86503..8854e7b5093 100644 --- a/lib/Target/R600/AMDGPUTargetMachine.cpp +++ b/lib/Target/R600/AMDGPUTargetMachine.cpp @@ -188,8 +188,8 @@ bool AMDGPUPassConfig::addPreRegAlloc() { bool AMDGPUPassConfig::addPostRegAlloc() { const AMDGPUSubtarget &ST = TM->getSubtarget(); - addPass(createSIShrinkInstructionsPass()); if (ST.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) { + addPass(createSIShrinkInstructionsPass()); addPass(createSIInsertWaits(*TM)); } return false; -- 2.34.1