Open
Description
- In debug mode, initialize undefined memory to
0xaa
, including llvm globals. - In release mode, when a variable is initialized to undefined, omit the initialization.
- In release mode, if some fields of a struct, or some list elements in an array are undefined, but some are not, codegen this to individual assignments instead of a single memcpy.
It might make sense to remove the init value from a var decl instruction and make that a normal assignment instruction.