File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
clang/utils/perf-training Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -560,12 +560,12 @@ def genOrderFile(args):
560
560
return 0
561
561
562
562
563
- def filter_bolt_optimized (inputs , instrumented_outputs ):
563
+ def filter_bolt_optimized (inputs , instrumented_outputs , readelf ):
564
564
new_inputs = []
565
565
new_instrumented_ouputs = []
566
566
for input , instrumented_output in zip (inputs , instrumented_outputs ):
567
567
output = subprocess .check_output (
568
- [opts . readelf , "-WS" , input ], universal_newlines = True
568
+ [readelf , "-WS" , input ], universal_newlines = True
569
569
)
570
570
571
571
# This binary has already been bolt-optimized, so skip further processing.
@@ -597,7 +597,9 @@ def bolt_optimize(args):
597
597
instrumented_outputs
598
598
), "inconsistent --input / --instrumented-output arguments"
599
599
600
- inputs , instrumented_outputs = filter_bolt_optimized (inputs , instrumented_outputs )
600
+ inputs , instrumented_outputs = filter_bolt_optimized (inputs ,
601
+ instrumented_outputs ,
602
+ opts .readelf )
601
603
if not inputs :
602
604
return 0
603
605
You can’t perform that action at this time.
0 commit comments