summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-13 20:14:00 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-06-13 20:14:00 +0000
commitadba083bc2349775630ec4fc201f708e8bce67e3 (patch)
tree7f1d34e4a608cb910277bfddee28ef01d1678b78
parent09079162ee9b4ef99c6d60b0356692c66fe51fe1 (diff)
downloadbcm5719-llvm-adba083bc2349775630ec4fc201f708e8bce67e3.tar.gz
bcm5719-llvm-adba083bc2349775630ec4fc201f708e8bce67e3.zip
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 llvm-svn: 183937
-rw-r--r--llvm/lib/Target/R600/AMDILISelDAGToDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/AMDILISelDAGToDAG.cpp b/llvm/lib/Target/R600/AMDILISelDAGToDAG.cpp
index 93432a2c97a..9a5e9e6147a 100644
--- a/llvm/lib/Target/R600/AMDILISelDAGToDAG.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud