This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Use reentrant methods to time IR gen
AbandonedPublic

Authored by modocache on Aug 17 2017, 2:00 PM.

Details

Summary

Use the reentrant timer methods from
https://reviews.llvm.org/D36847 instead of manually keeping track of the
number of times startTimer() and stopTimer() should be called.

Test plan:
Run clang -ftime-report and confirm the time measurements are roughly
the same before and after applying this patch.

Event Timeline

modocache created this revision.Aug 17 2017, 2:00 PM
modocache updated this revision to Diff 112187.Aug 22 2017, 9:33 AM
modocache retitled this revision from [CodeGen] Use RefCntTimer to time IR generation to [CodeGen] Use reentrant methods to time IR gen.
modocache edited the summary of this revision. (Show Details)

Use startReentrantTimer and stopReentrantTimer

modocache abandoned this revision.Jan 12 2018, 10:31 AM