[llvm] r201096 - R600/SI: Only use S_WQM_B64 in pixel shaders

Tom Stellard thomas.stellard at amd.com
Mon Feb 10 08:58:27 PST 2014


Author: tstellar
Date: Mon Feb 10 10:58:27 2014
New Revision: 201096

URL: http://llvm.org/viewvc/llvm-project?rev=201096&view=rev
Log:
R600/SI: Only use S_WQM_B64 in pixel shaders

This doesn't change any functionality, since we only have two shader
types (compute and pixel) that use local memory.  We're just changing
the logic to match the documentation.

Modified:
    llvm/trunk/lib/Target/R600/SILowerControlFlow.cpp

Modified: llvm/trunk/lib/Target/R600/SILowerControlFlow.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SILowerControlFlow.cpp?rev=201096&r1=201095&r2=201096&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SILowerControlFlow.cpp (original)
+++ llvm/trunk/lib/Target/R600/SILowerControlFlow.cpp Mon Feb 10 10:58:27 2014
@@ -512,7 +512,7 @@ bool SILowerControlFlowPass::runOnMachin
             AMDGPU::M0).addImm(0xffffffff);
   }
 
-  if (NeedWQM && MFI->ShaderType != ShaderType::COMPUTE) {
+  if (NeedWQM && MFI->ShaderType == ShaderType::PIXEL) {
     MachineBasicBlock &MBB = MF.front();
     BuildMI(MBB, MBB.getFirstNonPHI(), DebugLoc(), TII->get(AMDGPU::S_WQM_B64),
             AMDGPU::EXEC).addReg(AMDGPU::EXEC);





More information about the llvm-commits mailing list