r355729 - [OPENMP]Remove debug service variable.
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 8 12:48:54 PST 2019
Author: abataev
Date: Fri Mar 8 12:48:54 2019
New Revision: 355729
URL: http://llvm.org/viewvc/llvm-project?rev=355729&view=rev
Log:
[OPENMP]Remove debug service variable.
Removed not required service variable for the debug info.
Modified:
cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
cfe/trunk/test/OpenMP/nvptx_target_firstprivate_codegen.cpp
Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp?rev=355729&r1=355728&r2=355729&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp Fri Mar 8 12:48:54 2019
@@ -4958,20 +4958,6 @@ static std::pair<unsigned, unsigned> get
}
void CGOpenMPRuntimeNVPTX::clear() {
- if (CGDebugInfo *DI = CGM.getModuleDebugInfo())
- if (CGM.getCodeGenOpts().getDebugInfo() >=
- codegenoptions::LimitedDebugInfo) {
- ASTContext &C = CGM.getContext();
- auto *VD = VarDecl::Create(
- C, C.getTranslationUnitDecl(), SourceLocation(), SourceLocation(),
- &C.Idents.get("_$_"), C.IntTy, /*TInfo=*/nullptr, SC_Static);
- auto *Var = cast<llvm::GlobalVariable>(
- CGM.CreateRuntimeVariable(CGM.IntTy, "_$_"));
- Var->setInitializer(llvm::ConstantInt::getNullValue(CGM.IntTy));
- Var->setLinkage(llvm::GlobalVariable::CommonLinkage);
- CGM.addCompilerUsedGlobal(Var);
- DI->EmitGlobalVariable(Var, VD);
- }
if (!GlobalizedRecords.empty()) {
ASTContext &C = CGM.getContext();
llvm::SmallVector<const GlobalPtrSizeRecsTy *, 4> GlobalRecs;
Modified: cfe/trunk/test/OpenMP/nvptx_target_firstprivate_codegen.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/OpenMP/nvptx_target_firstprivate_codegen.cpp?rev=355729&r1=355728&r2=355729&view=diff
==============================================================================
--- cfe/trunk/test/OpenMP/nvptx_target_firstprivate_codegen.cpp (original)
+++ cfe/trunk/test/OpenMP/nvptx_target_firstprivate_codegen.cpp Fri Mar 8 12:48:54 2019
@@ -17,8 +17,7 @@ struct TT {
// TCHECK-DAG: [[TTII:%.+]] = type { i32, i32 }
// TCHECK-DAG: [[S1:%.+]] = type { double }
-// TCHECK: @__omp_offloading_firstprivate__{{.+}}_e_l28 = internal addrspace(4) global [[TTII]] zeroinitializer
-// TCHECK: @{{.*}}_$_{{.*}} = common global i32 0, !dbg !{{[0-9]+}}
+// TCHECK: @__omp_offloading_firstprivate__{{.+}}_e_l27 = internal addrspace(4) global [[TTII]] zeroinitializer
int foo(int n, double *ptr) {
int a = 0;
short aa = 0;
More information about the cfe-commits
mailing list