@@ -216,7 +216,7 @@ PhaseChaitin::PhaseChaitin(uint unique, PhaseCFG &cfg, Matcher &matcher, bool sc
216
216
, _scratch_int_pressure(0 , Matcher::int_pressure_limit())
217
217
, _scratch_float_pressure(0 , Matcher::float_pressure_limit())
218
218
{
219
- Compile::TracePhase tp (" ctorChaitin " , &timers[ _t_ctorChaitin] );
219
+ Compile::TracePhase tp (_t_ctorChaitin);
220
220
221
221
_high_frequency_lrg = MIN2 (double (OPTO_LRG_HIGH_FREQ), _cfg.get_outer_loop_frequency ());
222
222
@@ -321,7 +321,7 @@ int PhaseChaitin::clone_projs(Block* b, uint idx, Node* orig, Node* copy, uint&
321
321
322
322
// Renumber the live ranges to compact them. Makes the IFG smaller.
323
323
void PhaseChaitin::compact () {
324
- Compile::TracePhase tp (" chaitinCompact " , &timers[ _t_chaitinCompact] );
324
+ Compile::TracePhase tp (_t_chaitinCompact);
325
325
326
326
// Current the _uf_map contains a series of short chains which are headed
327
327
// by a self-cycle. All the chains run from big numbers to little numbers.
@@ -397,7 +397,7 @@ void PhaseChaitin::Register_Allocate() {
397
397
#endif
398
398
399
399
{
400
- Compile::TracePhase tp (" computeLive " , &timers[ _t_computeLive] );
400
+ Compile::TracePhase tp (_t_computeLive);
401
401
_live = nullptr ; // Mark live as being not available
402
402
rm.reset_to_mark (); // Reclaim working storage
403
403
IndexSet::reset_memory (C, &live_arena);
@@ -414,7 +414,7 @@ void PhaseChaitin::Register_Allocate() {
414
414
// at all the GC points, and "stretches" the live range of any base pointer
415
415
// to the GC point.
416
416
if (stretch_base_pointer_live_ranges (&live_arena)) {
417
- Compile::TracePhase tp (" computeLive (sbplr)" , &timers[ _t_computeLive] );
417
+ Compile::TracePhase tp (" computeLive (sbplr)" , _t_computeLive);
418
418
// Since some live range stretched, I need to recompute live
419
419
_live = nullptr ;
420
420
rm.reset_to_mark (); // Reclaim working storage
@@ -439,7 +439,7 @@ void PhaseChaitin::Register_Allocate() {
439
439
// This pass works on virtual copies. Any virtual copies which are not
440
440
// coalesced get manifested as actual copies
441
441
{
442
- Compile::TracePhase tp (" chaitinCoalesce1 " , &timers[ _t_chaitinCoalesce1] );
442
+ Compile::TracePhase tp (_t_chaitinCoalesce1);
443
443
444
444
PhaseAggressiveCoalesce coalesce (*this );
445
445
coalesce.coalesce_driver ();
@@ -454,7 +454,7 @@ void PhaseChaitin::Register_Allocate() {
454
454
// After aggressive coalesce, attempt a first cut at coloring.
455
455
// To color, we need the IFG and for that we need LIVE.
456
456
{
457
- Compile::TracePhase tp (" computeLive " , &timers[ _t_computeLive] );
457
+ Compile::TracePhase tp (_t_computeLive);
458
458
_live = nullptr ;
459
459
rm.reset_to_mark (); // Reclaim working storage
460
460
IndexSet::reset_memory (C, &live_arena);
@@ -495,7 +495,7 @@ void PhaseChaitin::Register_Allocate() {
495
495
compact (); // Compact LRGs; return new lower max lrg
496
496
497
497
{
498
- Compile::TracePhase tp (" computeLive " , &timers[ _t_computeLive] );
498
+ Compile::TracePhase tp (_t_computeLive);
499
499
_live = nullptr ;
500
500
rm.reset_to_mark (); // Reclaim working storage
501
501
IndexSet::reset_memory (C, &live_arena);
@@ -509,7 +509,7 @@ void PhaseChaitin::Register_Allocate() {
509
509
_ifg->Compute_Effective_Degree ();
510
510
// Only do conservative coalescing if requested
511
511
if (OptoCoalesce) {
512
- Compile::TracePhase tp (" chaitinCoalesce2 " , &timers[ _t_chaitinCoalesce2] );
512
+ Compile::TracePhase tp (_t_chaitinCoalesce2);
513
513
// Conservative (and pessimistic) copy coalescing of those spills
514
514
PhaseConservativeCoalesce coalesce (*this );
515
515
// If max live ranges greater than cutoff, don't color the stack.
@@ -568,7 +568,7 @@ void PhaseChaitin::Register_Allocate() {
568
568
569
569
// Nuke the live-ness and interference graph and LiveRanGe info
570
570
{
571
- Compile::TracePhase tp (" computeLive " , &timers[ _t_computeLive] );
571
+ Compile::TracePhase tp (_t_computeLive);
572
572
_live = nullptr ;
573
573
rm.reset_to_mark (); // Reclaim working storage
574
574
IndexSet::reset_memory (C, &live_arena);
@@ -586,7 +586,7 @@ void PhaseChaitin::Register_Allocate() {
586
586
587
587
// Only do conservative coalescing if requested
588
588
if (OptoCoalesce) {
589
- Compile::TracePhase tp (" chaitinCoalesce3 " , &timers[ _t_chaitinCoalesce3] );
589
+ Compile::TracePhase tp (_t_chaitinCoalesce3);
590
590
// Conservative (and pessimistic) copy coalescing
591
591
PhaseConservativeCoalesce coalesce (*this );
592
592
// Check for few live ranges determines how aggressive coalesce is.
@@ -1183,7 +1183,7 @@ void PhaseChaitin::set_was_low() {
1183
1183
1184
1184
// Compute cost/area ratio, in case we spill. Build the lo-degree list.
1185
1185
void PhaseChaitin::cache_lrg_info ( ) {
1186
- Compile::TracePhase tp (" chaitinCacheLRG " , &timers[ _t_chaitinCacheLRG] );
1186
+ Compile::TracePhase tp (_t_chaitinCacheLRG);
1187
1187
1188
1188
for (uint i = 1 ; i < _lrg_map.max_lrg_id (); i++) {
1189
1189
LRG &lrg = lrgs (i);
@@ -1217,7 +1217,7 @@ void PhaseChaitin::cache_lrg_info( ) {
1217
1217
1218
1218
// Simplify the IFG by removing LRGs of low degree.
1219
1219
void PhaseChaitin::Simplify ( ) {
1220
- Compile::TracePhase tp (" chaitinSimplify " , &timers[ _t_chaitinSimplify] );
1220
+ Compile::TracePhase tp (_t_chaitinSimplify);
1221
1221
1222
1222
while ( 1 ) { // Repeat till simplified it all
1223
1223
// May want to explore simplifying lo_degree before _lo_stk_degree.
@@ -1516,7 +1516,7 @@ OptoReg::Name PhaseChaitin::choose_color( LRG &lrg, int chunk ) {
1516
1516
// everything going back is guaranteed a color. Select that color. If some
1517
1517
// hi-degree LRG cannot get a color then we record that we must spill.
1518
1518
uint PhaseChaitin::Select ( ) {
1519
- Compile::TracePhase tp (" chaitinSelect " , &timers[ _t_chaitinSelect] );
1519
+ Compile::TracePhase tp (_t_chaitinSelect);
1520
1520
1521
1521
uint spill_reg = LRG::SPILL_REG;
1522
1522
_max_reg = OptoReg::Name (0 ); // Past max register used
@@ -1704,7 +1704,7 @@ void PhaseChaitin::fixup_spills() {
1704
1704
// This function does only cisc spill work.
1705
1705
if ( !UseCISCSpill ) return ;
1706
1706
1707
- Compile::TracePhase tp (" fixupSpills " , &timers[ _t_fixupSpills] );
1707
+ Compile::TracePhase tp (_t_fixupSpills);
1708
1708
1709
1709
// Grab the Frame Pointer
1710
1710
Node *fp = _cfg.get_root_block ()->head ()->in (1 )->in (TypeFunc::FramePtr);
0 commit comments