r4870@macbookpro: aamine | 2009-05-18 03:51:57 +0900

* net/loveruby/cflat/sysdep/x86/CodeGenerator.java (optimize): wrongly did not optimize asm code.
 


git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4223 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
Minero Aoki 2009-05-17 19:14:03 +00:00
parent 17e2199db8
commit 68c4a0104b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon May 18 03:50:55 2009 Minero Aoki <aamine@loveruby.net>
* net/loveruby/cflat/sysdep/x86/CodeGenerator.java (optimize):
wrongly did not optimize asm code.
Mon May 18 03:29:59 2009 Minero Aoki <aamine@loveruby.net>
* net/loveruby/cflat/compiler/TypeResolver.java: move x[] -> x*

View File

@ -414,7 +414,7 @@ public class CodeGenerator
if (options.optimizeLevel() < 1) {
return asms;
}
return new PeepholeOptimizer().optimize(asms);
return PeepholeOptimizer.defaultSet().optimize(asms);
}
// #@@}