aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/SICodeEmitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/radeon/SICodeEmitter.cpp')
-rw-r--r--src/gallium/drivers/radeon/SICodeEmitter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/SICodeEmitter.cpp b/src/gallium/drivers/radeon/SICodeEmitter.cpp
index 1d247061e41..585d4180e4d 100644
--- a/src/gallium/drivers/radeon/SICodeEmitter.cpp
+++ b/src/gallium/drivers/radeon/SICodeEmitter.cpp
@@ -156,8 +156,12 @@ void SICodeEmitter::emitState(MachineFunction & MF)
bool SICodeEmitter::runOnMachineFunction(MachineFunction &MF)
{
- MF.dump();
TM = &MF.getTarget();
+ const AMDILSubtarget &STM = TM->getSubtarget<AMDILSubtarget>();
+
+ if (STM.dumpCode()) {
+ MF.dump();
+ }
emitState(MF);