go-llvm / llgo

LLVM-based compiler for Go
Other
1.25k stars 81 forks source link

Build global aggregate initializers with Create{Array,Struct} #199

Closed pcc closed 10 years ago

pcc commented 10 years ago

...instead of CreateInsertValue. This avoids O(n^2) complexity as a result of uniquing each intermediate constant built, and improves bootstrapping performance by ~5%.

axw commented 10 years ago

LGTM