summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2018-06-22 00:44:29 +0000
committerTom Stellard <tstellar@redhat.com>2018-06-22 00:44:29 +0000
commit7712ee8891dc9b57c2a5e3f159a83dad63ee9f16 (patch)
treed6eb48a793dbafb251a8d2790159244f6252f257 /llvm/lib
parent0307d52bd7b28d562a286825624feac84a230455 (diff)
downloadbcm5719-llvm-7712ee8891dc9b57c2a5e3f159a83dad63ee9f16.tar.gz
bcm5719-llvm-7712ee8891dc9b57c2a5e3f159a83dad63ee9f16.zip
AMDGPU/GlobalISel: Implement select() for COPY
Reviewers: arsenm, nhaehnle Reviewed By: nhaehnle Subscribers: kzhuravl, wdng, yaxunl, rovka, kristof.beyls, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D46151 llvm-svn: 335315
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
index 27bd191b93e..dde8fdccb73 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
@@ -528,8 +528,11 @@ bool AMDGPUInstructionSelector::selectG_LOAD(MachineInstr &I) const {
bool AMDGPUInstructionSelector::select(MachineInstr &I,
CodeGenCoverage &CoverageInfo) const {
- if (!isPreISelGenericOpcode(I.getOpcode()))
+ if (!isPreISelGenericOpcode(I.getOpcode())) {
+ if (I.isCopy())
+ return selectCOPY(I);
return true;
+ }
switch (I.getOpcode()) {
default:
OpenPOWER on IntegriCloud