patchDotGNU Portable.NET - Patches: patch #5037, A small patch for handling...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #5037: A small patch for handling insn->value1==insn->value2 in an opcode.

Submitter:  Kirill Kononenko <krokas>
Submitted:  Tue 11 Apr 2006 04:44:06 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Wont Do Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Fri 15 Sep 2006 05:50:58 AM UTC, comment #1: 

the register allocator has been completely rewritten and this patch does not apply anymore

Aleksey Demakov <avd>
Group Member
Tue 11 Apr 2006 04:44:06 PM UTC, original submission:  

In an opcode handling _jit_regs_load_value changes flags of the first input value (insn->value1). But if an opcode has two arguments then in the case of value1==value2 the second value (value2) points to the same content. Then with a change of value1 the flags of the second value can be changed too. For example these flags include if value2 (value1) has been already loaded in a register. To handle this case we add before _jit_regs_load_value a check which makes a copy of the value2 content in a new jit_value_t and then point value2 to it.

A testcase: http://maybe.dotgnu.info:8000/~krokas/pnet_2006_04_11/libjit/testcase/test.c
The complete code is at: http://maybe.dotgnu.info:8000/~krokas/pnet_2006_04_11/libjit/patches/gen-sel-parser.y

Kirill Kononenko <krokas>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #9763:  krokas-060411.patch added by krokas (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-09-15 avd StatusNone Wont Do
    Open/ClosedOpen Closed
2006-04-11 krokas Attached File- Added krokas-060411.patch, #9763

Back to the top

Powered by Savane 3.12