mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-09 06:23:14 +00:00
Simplify scalar -> array conversions in LLVM to use a loop after a certain size
This commit is contained in:
@@ -954,16 +954,6 @@ gb_internal void lb_addr_store(lbProcedure *p, lbAddr addr, lbValue value) {
|
||||
GB_ASSERT(value.value != nullptr);
|
||||
value = lb_emit_conv(p, value, lb_addr_type(addr));
|
||||
|
||||
// if (lb_is_const_or_global(value)) {
|
||||
// // NOTE(bill): Just bypass the actual storage and set the initializer
|
||||
// if (LLVMGetValueKind(addr.addr.value) == LLVMGlobalVariableValueKind) {
|
||||
// LLVMValueRef dst = addr.addr.value;
|
||||
// LLVMValueRef src = value.value;
|
||||
// LLVMSetInitializer(dst, src);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
|
||||
lb_emit_store(p, addr.addr, value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user