roc/crates/compiler/mono
Ayaz Hafiz 9abbcfaafc
Optimize literal list construction in LLVM backend
Currently, list literals are always heap-allocated and their elements
are stored by emitting a GEP and store for each item in the literal.
This produces huge quantities of IR, causing compile times for e.g.
programs with large literals or ingested files to blow up.

Instead, if a list literal consists entirely of literal values, create a
global section for the literal and return a pointer to it.
2024-08-09 18:51:17 -07:00
..
src Optimize literal list construction in LLVM backend 2024-08-09 18:51:17 -07:00
Cargo.toml better mono repl error 2024-07-12 17:02:34 +02:00