This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
index of basic blocks
- From: "Eduardo Martinez Pardeiro" <eduxmp at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 25 Apr 2008 14:30:13 +0200
- Subject: index of basic blocks
Hello, I'm trying to do a new optimization. For this optimization i
need to create new basic blocks. For example creating new bb T=0 :
...
<bb 2>:
t1.18 = clock ();
t1 = t1.18;
aux.23 = 0;
goto <bb 17>;
<bb 15>:
T = 0;
goto <bb 13>;
<bb 3>:
i = 0;
goto <bb 11>;
<bb 4>:
j = 0;
...
The new block have index 15...can i change this index to reorder all
basic blocks? There is some function to do it? i.e.
<bb 2>:
t1.18 = clock ();
t1 = t1.18;
aux.23 = 0;
goto <bb 17>;
<bb 3>:
T = 0;
goto <bb 14>;
<bb 4>:
i = 0;
goto <bb 12>;
<bb 5>:
j = 0;