polyglot-compiler / JLang

JLang: Ahead-of-time compilation of Java programs to LLVM
http://polyglot-compiler.github.io/JLang/
Other
284 stars 29 forks source link

Optimize static final fields #16

Open dz333 opened 6 years ago

dz333 commented 6 years ago

From @gharrma on May 10, 2018 21:39

Initialize constant static fields at compile time where possible, and don't bother doing class initialization (when these fields are accessed) if they are also final (JLS 12.4.1).

Copied from original issue: gharrma/polyllvm#52