File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1050,7 +1050,6 @@ try:
10501050 if not LEAVE_INPUTS_RAW :
10511051 link_opts = [] if keep_debug else ['-strip-debug' ]
10521052 if llvm_opts > 0 :
1053- if DEBUG : print >> sys .stderr , 'emcc: LLVM -O%d' % llvm_opts
10541053 shared .Building .llvm_opt (in_temp (target_basename + '.bc' ), llvm_opts )
10551054 if DEBUG : save_intermediate ('opt' , 'bc' )
10561055 # Do LTO in a separate pass to work around LLVM bug XXX (see failure e.g. in cubescript)
@@ -1063,7 +1062,6 @@ try:
10631062 else :
10641063 # At minimum remove dead functions etc., this potentially saves a lot in the size of the generated code (and the time to compile it)
10651064 link_opts += shared .Building .get_safe_internalize () + ['-globaldce' ]
1066- if DEBUG : print >> sys .stderr , 'emcc: LLVM linktime:' , link_opts
10671065 shared .Building .llvm_opt (in_temp (target_basename + '.bc' ), link_opts )
10681066 if DEBUG : save_intermediate ('linktime' , 'bc' )
10691067
Original file line number Diff line number Diff line change @@ -819,6 +819,7 @@ def ll_opts(filename):
819819 def llvm_opt (filename , opts ):
820820 if type (opts ) is int :
821821 opts = Building .pick_llvm_opts (opts )
822+ if DEBUG : print >> sys .stderr , 'emcc: LLVM opts:' , opts
822823 output = Popen ([LLVM_OPT , filename ] + opts + ['-o=' + filename + '.opt.bc' ], stdout = PIPE ).communicate ()[0 ]
823824 assert os .path .exists (filename + '.opt.bc' ), 'Failed to run llvm optimizations: ' + output
824825 shutil .move (filename + '.opt.bc' , filename )
You can’t perform that action at this time.
0 commit comments