[llvm] r183937 - R600: Don't try to fix reg class when copying IMPLICIT_DEF to a register

Tom Stellard thomas.stellard at amd.com
Thu Jun 13 13:14:00 PDT 2013


Author: tstellar
Date: Thu Jun 13 15:14:00 2013
New Revision: 183937

URL: http://llvm.org/viewvc/llvm-project?rev=183937&view=rev
Log:
R600: Don't try to fix reg class when copying IMPLICIT_DEF to a register

The test case for this is way too complex to be useful as a lit test,
and I was unable to reduce it.

https://bugs.freedesktop.org/show_bug.cgi?id=65438

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

Modified: llvm/trunk/lib/Target/R600/AMDILISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDILISelDAGToDAG.cpp?rev=183937&r1=183936&r2=183937&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDILISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDILISelDAGToDAG.cpp Thu Jun 13 15:14:00 2013
@@ -766,7 +766,8 @@ void AMDGPUDAGToDAGISel::PostprocessISel
         continue;
       }
 
-      if (!Val.getNode()->isMachineOpcode()) {
+      if (!Val.getNode()->isMachineOpcode() ||
+          Val.getNode()->getMachineOpcode() == AMDGPU::IMPLICIT_DEF) {
         continue;
       }
 





More information about the llvm-commits mailing list