summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2018-04-09 16:09:13 +0000
committerTom Stellard <tstellar@redhat.com>2018-04-09 16:09:13 +0000
commite753c52227306a4563e9d4dbd24136c3c7c7e922 (patch)
treef3e326550f601bb3ec2a5a0d03aac9b2e0f8151e /llvm/lib/Target/AMDGPU
parent14566ea6ef85abf952f01b326f81657847d24bbc (diff)
downloadbcm5719-llvm-e753c52227306a4563e9d4dbd24136c3c7c7e922.tar.gz
bcm5719-llvm-e753c52227306a4563e9d4dbd24136c3c7c7e922.zip
AMDGPU: Initialize GlobalISel passes
Summary: This fixes AMDGPU GlobalISel test failures when enabling the AMDGPU target without any other targets that use GlobalISel. Reviewers: arsenm Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, dstuttard, tpr, llvm-commits, t-tye Differential Revision: https://reviews.llvm.org/D45353 llvm-svn: 329588
Diffstat (limited to 'llvm/lib/Target/AMDGPU')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index f5a35cb9110..e4cd22c61ea 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -147,6 +147,7 @@ extern "C" void LLVMInitializeAMDGPUTarget() {
initializeR600PacketizerPass(*PR);
initializeR600ExpandSpecialInstrsPassPass(*PR);
initializeR600VectorRegMergerPass(*PR);
+ initializeGlobalISel(*PR);
initializeAMDGPUDAGToDAGISelPass(*PR);
initializeSILowerI1CopiesPass(*PR);
initializeSIFixSGPRCopiesPass(*PR);
OpenPOWER on IntegriCloud