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):
560560 return 0
561561
562562
563- def filter_bolt_optimized (inputs , instrumented_outputs ):
563+ def filter_bolt_optimized (inputs , instrumented_outputs , readelf ):
564564 new_inputs = []
565565 new_instrumented_ouputs = []
566566 for input , instrumented_output in zip (inputs , instrumented_outputs ):
567567 output = subprocess .check_output (
568- [opts . readelf , "-WS" , input ], universal_newlines = True
568+ [readelf , "-WS" , input ], universal_newlines = True
569569 )
570570
571571 # This binary has already been bolt-optimized, so skip further processing.
@@ -597,7 +597,9 @@ def bolt_optimize(args):
597597 instrumented_outputs
598598 ), "inconsistent --input / --instrumented-output arguments"
599599
600- inputs , instrumented_outputs = filter_bolt_optimized (inputs , instrumented_outputs )
600+ inputs , instrumented_outputs = filter_bolt_optimized (inputs ,
601+ instrumented_outputs ,
602+ opts .readelf )
601603 if not inputs :
602604 return 0
603605
You can’t perform that action at this time.
0 commit comments