Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

LLVM optimizations (unused for now)

  • Loading branch information...
commit cd07a54a6243f6a85a3e5f5ed93f26c70138da16 1 parent 5601455
Alon Zakai authored November 08, 2011

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  Avc/make.py
9  Avc/make.py
@@ -51,6 +51,15 @@
51 51
 
52 52
 Popen(['make', '-j', '4'], env=env).communicate()
53 53
 
  54
+if 0:
  55
+  print 'LLVM optimizations'
  56
+
  57
+  shutil.move('avc.bc', 'avc.orig.bc')
  58
+  output = Popen([emscripten.LLVM_OPT, 'avc.orig.bc'] +
  59
+                 emscripten.pick_llvm_opts(3, handpicked=True) +
  60
+                 ['-o=avc.bc'], stdout=PIPE, stderr=STDOUT).communicate()[0]
  61
+  assert os.path.exists('avc.bc'), 'Failed to run llvm optimizations: ' + output
  62
+
54 63
 print 'LLVM binary => LL assembly'
55 64
 
56 65
 print Popen([emscripten.LLVM_DIS] + emscripten.LLVM_DIS_OPTS + ['avc.bc', '-o=avc.ll']).communicate()

0 notes on commit cd07a54

Please sign in to comment.
Something went wrong with that request. Please try again.