File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 17
17
#include " llvm/IR/IRPrintingPasses.h"
18
18
#include " llvm/IR/LLVMContext.h"
19
19
#include " llvm/Support/Debug.h"
20
+ #include " llvm/Support/TimeProfiler.h" // HLSL Change
20
21
#include " llvm/Support/Timer.h"
21
22
#include " llvm/Support/raw_ostream.h"
22
23
using namespace llvm ;
@@ -199,6 +200,10 @@ bool LPPassManager::runOnFunction(Function &F) {
199
200
LI = &LIWP.getLoopInfo ();
200
201
bool Changed = false ;
201
202
203
+ // HLSL Change Begin - Support hierarchial time tracing.
204
+ llvm::TimeTraceScope FunctionScope (" Loop Pass Manager Function" , F.getName ());
205
+ // HLSL Change End
206
+
202
207
// Collect inherited analysis from Module level pass manager.
203
208
populateInheritedAnalysis (TPM->activeStack );
204
209
@@ -248,6 +253,10 @@ bool LPPassManager::runOnFunction(Function &F) {
248
253
PassManagerPrettyStackEntry X (P, *CurrentLoop->getHeader ());
249
254
TimeRegion PassTimer (getPassTimer (P));
250
255
256
+ // HLSL Change Begin - Support hierarchial time tracing.
257
+ llvm::TimeTraceScope PassScope (" RunLoopPass" , P->getPassName ());
258
+ // HLSL Change End - Support hierarchial time tracing.
259
+
251
260
Changed |= P->runOnLoop (CurrentLoop, *this );
252
261
}
253
262
You can’t perform that action at this time.
0 commit comments