Skip to content

Commit

Permalink
Remove LIBCLAD_TIMING environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed May 17, 2024
1 parent 5fa1c55 commit 49c65ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/Performance/Perf1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: time LIBCLAD_TIMING=1 %cladclang %s -O3 -I%S/../../include -std=c++11 -oPerf1.out 2>&1 | FileCheck %s
// RUN: %cladclang %s -O3 -ftime-report -I%S/../../include -std=c++11 -oPerf1.out 2>&1 | FileCheck %s
// RUN: ./Perf1.out | FileCheck -check-prefix=CHECK-EXEC %s

//#define COMPILER_TEST_ONLY
Expand Down
2 changes: 1 addition & 1 deletion test/Performance/Perf2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: time LIBCLAD_TIMING=1 %cladclang %s -O3 -I%S/../../include -std=c++11 -oPerf1.out 2>&1 | FileCheck %s
// RUN: %cladclang %s -O3 -ftime-report -I%S/../../include -std=c++11 -oPerf1.out 2>&1 | FileCheck %s
// RUN: ./Perf1.out | FileCheck -check-prefix=CHECK-EXEC %s

//#define COMPILER_TEST_ONLY
Expand Down
6 changes: 2 additions & 4 deletions tools/ClangPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,9 @@ namespace clad {
// derive the collected functions

#if CLANG_VERSION_MAJOR > 11
bool WantTiming =
getenv("LIBCLAD_TIMING") || m_CI.getCodeGenOpts().TimePasses;
bool WantTiming = m_CI.getCodeGenOpts().TimePasses;
#else
bool WantTiming =
getenv("LIBCLAD_TIMING") || m_CI.getFrontendOpts().ShowTimers;
bool WantTiming = m_CI.getFrontendOpts().ShowTimers;
#endif

auto DFI = m_DFC.Find(request);
Expand Down

0 comments on commit 49c65ad

Please sign in to comment.