From 40e244da385c8afa2f5348654a76b709dbbfd966 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 10 Jun 2013 09:28:22 -0700 Subject: [PATCH] R600: Don't try to fix reg class when copying IMPLICIT_DEF to a register https://bugs.freedesktop.org/show_bug.cgi?id=65438 --- lib/Target/R600/AMDILISelDAGToDAG.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/R600/AMDILISelDAGToDAG.cpp b/lib/Target/R600/AMDILISelDAGToDAG.cpp index 93432a2..9a5e9e6 100644 --- a/lib/Target/R600/AMDILISelDAGToDAG.cpp +++ b/lib/Target/R600/AMDILISelDAGToDAG.cpp @@ -766,7 +766,8 @@ void AMDGPUDAGToDAGISel::PostprocessISelDAG() { continue; } - if (!Val.getNode()->isMachineOpcode()) { + if (!Val.getNode()->isMachineOpcode() || + Val.getNode()->getMachineOpcode() == AMDGPU::IMPLICIT_DEF) { continue; } -- 1.7.11.4