[PATCH] D96166: [NVPTX][NewPM] Temporarily disable NVPTX passes in new PM pipeline
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 5 11:16:12 PST 2021
aeubanks created this revision.
Herald added subscribers: hiraditya, jholewinski.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
These passes are causing numerical discrepancies after being added to
the pipeline. Disable while investigating.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96166
Files:
llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
llvm/test/CodeGen/NVPTX/nvvm-reflect-arch.ll
Index: llvm/test/CodeGen/NVPTX/nvvm-reflect-arch.ll
===================================================================
--- llvm/test/CodeGen/NVPTX/nvvm-reflect-arch.ll
+++ llvm/test/CodeGen/NVPTX/nvvm-reflect-arch.ll
@@ -1,9 +1,10 @@
; Libdevice in recent CUDA versions relies on __CUDA_ARCH reflecting GPU type.
; Verify that __nvvm_reflect() is replaced with an appropriate value.
;
-; RUN: opt %s -S -nvvm-reflect -O2 -mtriple=nvptx64 \
+; FIXME: fix pass and re-enable under new PM
+; RUN: opt %s -S -nvvm-reflect -O2 -enable-new-pm=0 -mtriple=nvptx64 \
; RUN: | FileCheck %s --check-prefixes=COMMON,SM20
-; RUN: opt %s -S -nvvm-reflect -O2 -mtriple=nvptx64 -mcpu=sm_35 \
+; RUN: opt %s -S -nvvm-reflect -O2 -enable-new-pm=0 -mtriple=nvptx64 -mcpu=sm_35 \
; RUN: | FileCheck %s --check-prefixes=COMMON,SM35
@"$str" = private addrspace(1) constant [12 x i8] c"__CUDA_ARCH\00"
Index: llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
===================================================================
--- llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
+++ llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
@@ -222,14 +222,17 @@
return false;
});
- PB.registerPipelineStartEPCallback(
- [this, DebugPassManager](ModulePassManager &PM,
- PassBuilder::OptimizationLevel Level) {
- FunctionPassManager FPM(DebugPassManager);
- FPM.addPass(NVVMReflectPass(Subtarget.getSmVersion()));
- FPM.addPass(NVVMIntrRangePass(Subtarget.getSmVersion()));
- PM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM)));
- });
+ // FIXME: these passes are causing numerical discrepancies, investigate and
+ // re-enable.
+
+ // PB.registerPipelineStartEPCallback(
+ // [this, DebugPassManager](ModulePassManager &PM,
+ // PassBuilder::OptimizationLevel Level) {
+ // FunctionPassManager FPM(DebugPassManager);
+ // FPM.addPass(NVVMReflectPass(Subtarget.getSmVersion()));
+ // FPM.addPass(NVVMIntrRangePass(Subtarget.getSmVersion()));
+ // PM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM)));
+ // });
}
TargetTransformInfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96166.321835.patch
Type: text/x-patch
Size: 2182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210205/1366d6e2/attachment.bin>
More information about the llvm-commits
mailing list