summaryrefslogtreecommitdiff
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
commit2948e693cb9ed0f99e8ba2448459d8a34f091075 (patch)
tree726479725b1b12d57be6b2a739394101a2aa0d8e
parenta29ece1693ff16ff991e184f6e073c9fb30fcb4b (diff)
downloadllvm-2948e693cb9ed0f99e8ba2448459d8a34f091075.tar.gz
llvm-2948e693cb9ed0f99e8ba2448459d8a34f091075.tar.bz2
llvm-2948e693cb9ed0f99e8ba2448459d8a34f091075.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183937 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/R600/AMDILISelDAGToDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/R600/AMDILISelDAGToDAG.cpp b/lib/Target/R600/AMDILISelDAGToDAG.cpp
index 93432a2c97..9a5e9e6147 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;
}