authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2019-11-25 23:12:55-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2019-11-25 23:12:55-05:00
logf96d818770fa8264b7b87e55ef7e01ff5df44c77
tree97b2cd81f4079eedbb67b5d5987a274add5ce470
parentc0cb6767451441fcc9cd3dc4fee3b4794c8b0646
parentd20df7df09ab5352ced84505e79e3a5b50bbeab4
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #3776 from mikdusan/stage1-intern-housekeeping

stage1: fix bad intern counting

1 files changed, 0 insertions(+), 15 deletions(-)

src/ir.cpp-15
......@@ -1230,9 +1230,6 @@ static IrInstruction *ir_build_return(IrBuilder *irb, Scope *scope, AstNode *sou
12301230}
12311231
12321232static IrInstruction *ir_build_const_void(IrBuilder *irb, Scope *scope, AstNode *source_node) {
1233#ifdef ZIG_ENABLE_MEM_PROFILE
1234 memprof_intern_count.x_void += 1;
1235#endif
12361233 IrInstructionConst *const_instruction = ir_create_instruction_noval<IrInstructionConst>(irb, scope, source_node);
12371234 ir_instruction_append(irb->current_basic_block, &const_instruction->base);
12381235 const_instruction->base.value = irb->codegen->intern.for_void();
......@@ -1240,9 +1237,6 @@ static IrInstruction *ir_build_const_void(IrBuilder *irb, Scope *scope, AstNode
12401237}
12411238
12421239static IrInstruction *ir_build_const_undefined(IrBuilder *irb, Scope *scope, AstNode *source_node) {
1243#ifdef ZIG_ENABLE_MEM_PROFILE
1244 memprof_intern_count.x_undefined += 1;
1245#endif
12461240 IrInstructionConst *const_instruction = ir_create_instruction_noval<IrInstructionConst>(irb, scope, source_node);
12471241 ir_instruction_append(irb->current_basic_block, &const_instruction->base);
12481242 const_instruction->base.value = irb->codegen->intern.for_undefined();
......@@ -1274,9 +1268,6 @@ static IrInstruction *ir_build_const_bigfloat(IrBuilder *irb, Scope *scope, AstN
12741268}
12751269
12761270static IrInstruction *ir_build_const_null(IrBuilder *irb, Scope *scope, AstNode *source_node) {
1277#ifdef ZIG_ENABLE_MEM_PROFILE
1278 memprof_intern_count.x_null += 1;
1279#endif
12801271 IrInstructionConst *const_instruction = ir_create_instruction_noval<IrInstructionConst>(irb, scope, source_node);
12811272 ir_instruction_append(irb->current_basic_block, &const_instruction->base);
12821273 const_instruction->base.value = irb->codegen->intern.for_null();
......@@ -11460,18 +11451,12 @@ static IrInstruction *ir_const_undef(IrAnalyze *ira, IrInstruction *source_instr
1146011451}
1146111452
1146211453static IrInstruction *ir_const_unreachable(IrAnalyze *ira, IrInstruction *source_instruction) {
11463#ifdef ZIG_ENABLE_MEM_PROFILE
11464 memprof_intern_count.x_unreachable += 1;
11465#endif
1146611454 IrInstruction *result = ir_const_noval(ira, source_instruction);
1146711455 result->value = ira->codegen->intern.for_unreachable();
1146811456 return result;
1146911457}
1147011458
1147111459static IrInstruction *ir_const_void(IrAnalyze *ira, IrInstruction *source_instruction) {
11472#ifdef ZIG_ENABLE_MEM_PROFILE
11473 memprof_intern_count.x_void += 1;
11474#endif
1147511460 IrInstruction *result = ir_const_noval(ira, source_instruction);
1147611461 result->value = ira->codegen->intern.for_void();
1147711462 return result;