File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -280,9 +280,6 @@ fn execute_pipeline(
280
280
// Here we build a PGO instrumented LLVM, reusing the previously PGO optimized rustc.
281
281
// Then we use the instrumented LLVM to gather LLVM PGO profiles.
282
282
let llvm_pgo_profile = timer. section ( "Stage 2 (LLVM PGO)" , |stage| {
283
- if 1 + 1 == 2 {
284
- return Err ( anyhow:: anyhow!( "disabled" ) ) ;
285
- }
286
283
// Remove the previous, uninstrumented build of LLVM.
287
284
clear_llvm_files ( env) ?;
288
285
@@ -305,7 +302,7 @@ fn execute_pipeline(
305
302
clear_llvm_files ( env) ?;
306
303
307
304
Ok ( profile)
308
- } ) ;
305
+ } ) ? ;
309
306
310
307
let bolt_profiles = if env. use_bolt ( ) {
311
308
// Stage 3: Build BOLT instrumented LLVM
@@ -317,7 +314,7 @@ fn execute_pipeline(
317
314
stage. section ( "Build PGO optimized LLVM" , |stage| {
318
315
Bootstrap :: build ( env)
319
316
. with_llvm_bolt_ldflags ( )
320
- . llvm_pgo_optimize ( & llvm_pgo_profile? )
317
+ . llvm_pgo_optimize ( & llvm_pgo_profile)
321
318
. avoid_rustc_rebuild ( )
322
319
. run ( stage)
323
320
} ) ?;
@@ -369,6 +366,7 @@ fn execute_pipeline(
369
366
} ;
370
367
371
368
let mut dist = Bootstrap :: dist ( env, & dist_args)
369
+ . llvm_pgo_optimize ( & llvm_pgo_profile)
372
370
. rustc_pgo_optimize ( & rustc_pgo_profile)
373
371
. avoid_rustc_rebuild ( ) ;
374
372
You can’t perform that action at this time.
0 commit comments