[sel-sched] Add tracking of changes happened with an expression

Andrey Belevantsev abel@ispras.ru
Sat Dec 29 05:41:00 GMT 2007


This patch is an initial attempt in tracking a history of changes of an 
expression.  For each expression, we save its old form in case when a 
transformation has been applied to it.  When undoing transformations, we 
avoid extra work by just retrieving the old vinsn from the history 
vector.  In case of speculation, we also save the old speculative 
status, as this is the only thing we need for undoing.

The tricky part is that we can remove the instruction on which an 
expression has been previously changed.  In this case, we have to undo 
the transformation on a bookkeeping copy.  We keep a bitmap of original 
insns in bookkeeping copies for this purpose.

Committed to sel-sched branch.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: initial-trans-history.clg
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20071229/a0beced8/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initial-trans-history.diff
Type: text/x-patch
Size: 37067 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20071229/a0beced8/attachment.bin>

More information about the Gcc-patches mailing list