summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-04-10 14:55:16 -0400
committerTom Stellard <thomas.stellard@amd.com>2013-04-10 15:07:36 -0400
commit07304063c701a6022294afde537280e734613320 (patch)
tree23c88b1bf6442bda75c325657e1cf142b21859c8
parentb3101f586b805c1e5617ab4837b26300af7431d1 (diff)
XXX: R600: limit vtx clauses to one instructionsbfgminer
This fixes incorrect address calculations when multiple vtx instructions are in the same clause.
-rw-r--r--lib/Target/R600/R600ControlFlowFinalizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/R600/R600ControlFlowFinalizer.cpp b/lib/Target/R600/R600ControlFlowFinalizer.cpp
index 24f6559e226..ea5e775b437 100644
--- a/lib/Target/R600/R600ControlFlowFinalizer.cpp
+++ b/lib/Target/R600/R600ControlFlowFinalizer.cpp
@@ -174,9 +174,9 @@ public:
ST(tm.getSubtarget<AMDGPUSubtarget>()) {
const AMDGPUSubtarget &ST = tm.getSubtarget<AMDGPUSubtarget>();
if (ST.device()->getGeneration() <= AMDGPUDeviceInfo::HD4XXX)
- MaxFetchInst = 8;
+ MaxFetchInst = 1;
else
- MaxFetchInst = 16;
+ MaxFetchInst = 1;
}
virtual bool runOnMachineFunction(MachineFunction &MF) {