mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 13:25:19 +00:00
Unify "mem*.inline" logic to only inline for <=8 bytes on all platforms
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user