diff options
| author | azidar | 2016-01-14 15:00:33 -0800 |
|---|---|---|
| committer | azidar | 2016-01-16 14:28:18 -0800 |
| commit | 03cf32b5e17eb306e8fe681ef245b5f528306e61 (patch) | |
| tree | 4ed02def04e2c6a8287a972c51ec4cba24a9c8f5 /src/main/stanza/compilers.stanza | |
| parent | af593edd19d763a4399f4bc38109d2f904ffb8c2 (diff) | |
Sped up some passes. Added global mname to allow easy per-module hashes for accellerating functions
Diffstat (limited to 'src/main/stanza/compilers.stanza')
| -rw-r--r-- | src/main/stanza/compilers.stanza | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/stanza/compilers.stanza b/src/main/stanza/compilers.stanza index 03819463..ff9ddd78 100644 --- a/src/main/stanza/compilers.stanza +++ b/src/main/stanza/compilers.stanza @@ -166,15 +166,16 @@ public defn run-passes (c:Circuit,ls:List<Pass>) -> Circuit: var t = start-time val time-table = Vector<[String,Int]>() for p in ls do : - println-all(["Starting " name(p)]) + ;println-all(["Starting " name(p)]) if PRINT-CIRCUITS : println(name(p)) c* = pass(p)(c*) if PRINT-CIRCUITS : print(c*) val current-time = to-int(to-string(current-time-us() / to-long(1000))) - println-all(["Finished " name(p)]) - println-all(["Milliseconds since start: " current-time - start-time]) - println-all(["Milliseconds for this pass: " current-time - t]) - println-all(["\n"]) + ;println-all(["Finished " name(p)]) + ;println-all(["Milliseconds since start: " current-time - start-time]) + ;println-all(["Milliseconds for this pass: " current-time - t]) + ;println-all(["\n"]) + println-all([current-time - t]) add(time-table,[name(p), current-time - t]) t = current-time |
