[llvm] r176620 - R600/SI: fix unused variable warning

Christian Konig christian.koenig at amd.com
Thu Mar 7 01:03:30 PST 2013


Author: ckoenig
Date: Thu Mar  7 03:03:30 2013
New Revision: 176620

URL: http://llvm.org/viewvc/llvm-project?rev=176620&view=rev
Log:
R600/SI: fix unused variable warning

Signed-off-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

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

Modified: llvm/trunk/lib/Target/R600/AMDGPUIndirectAddressing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUIndirectAddressing.cpp?rev=176620&r1=176619&r2=176620&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUIndirectAddressing.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUIndirectAddressing.cpp Thu Mar  7 03:03:30 2013
@@ -289,7 +289,6 @@ bool AMDGPUIndirectAddressingPass::runOn
 
           // We only need to use REG_SEQUENCE for explicit defs, since the
           // register coalescer won't do anything with the implicit defs.
-          MachineInstr *DefInstr = MRI.getVRegDef(Reg);
           if (!regHasExplicitDef(MRI, Reg)) {
             continue;
           }





More information about the llvm-commits mailing list