diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-22 13:18:22 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-22 13:18:22 +0000 |
| commit | dc6067a8a988477446181ca428553948821ec06c (patch) | |
| tree | 6b1dcd3629623d5bdbda39bff2473cbb19729c50 /src/llvm_backend_utility.cpp | |
| parent | b0064f38cfb7f24d760feb010c09472fc7f896ee (diff) | |
Unify "mem*.inline" logic to only inline for <=8 bytes on all platforms
Diffstat (limited to 'src/llvm_backend_utility.cpp')
| -rw-r--r-- | src/llvm_backend_utility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_utility.cpp b/src/llvm_backend_utility.cpp index 9ddbd1f9c..43cac70c1 100644 --- a/src/llvm_backend_utility.cpp +++ b/src/llvm_backend_utility.cpp @@ -89,7 +89,7 @@ gb_internal LLVMValueRef lb_mem_zero_ptr_internal(lbProcedure *p, LLVMValueRef p bool is_inlinable = false; i64 const_len = 0; - if (LLVMIsConstant(len)) { + if (!p->is_startup && LLVMIsConstant(len)) { const_len = cast(i64)LLVMConstIntGetSExtValue(len); // TODO(bill): Determine when it is better to do the `*.inline` versions if (const_len <= lb_max_zero_init_size()) { |