[llvm] r247072 - [NVPTX] Added run NVVMReflect pass to NVPTX back-end.
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 14:04:56 PDT 2015
Author: tra
Date: Tue Sep 8 16:04:55 2015
New Revision: 247072
URL: http://llvm.org/viewvc/llvm-project?rev=247072&view=rev
Log:
[NVPTX] Added run NVVMReflect pass to NVPTX back-end.
The pass is needed to remove __nvvm_reflect calls when we link in
libdevice bitcode that comes with CUDA.
Differential Revision: http://reviews.llvm.org/D11663
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp?rev=247072&r1=247071&r2=247072&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp Tue Sep 8 16:04:55 2015
@@ -176,6 +176,7 @@ void NVPTXPassConfig::addIRPasses() {
disablePass(&MachineCopyPropagationID);
disablePass(&TailDuplicateID);
+ addPass(createNVVMReflectPass());
addPass(createNVPTXImageOptimizerPass());
addPass(createNVPTXAssignValidGlobalNamesPass());
addPass(createGenericToNVVMPass());
More information about the llvm-commits
mailing list