roc/crates/compiler/mono/src/ir
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
..
boxed.rs Fixed erased with nullable unwrapped union 2023-07-12 16:01:44 -05:00
decision_tree.rs clippy 2024-04-15 16:50:44 +02:00
erased.rs removed borrow.rs 2023-07-30 14:03:38 +02:00
literal.rs Optimize literal list construction in LLVM backend 2024-08-09 18:51:17 -07:00
pattern.rs Merge pull request #6819 from roc-lang/rust-1-77-2-upgrade 2024-07-06 03:23:54 +02:00