This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What is purpose of numbered variables??
- From: Diego Novillo <dnovillo at google dot com>
- To: ravandale at cse dot iitb dot ac dot in
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 04 Jun 2007 13:32:43 -0400
- Subject: Re: What is purpose of numbered variables??
- References: <57358.10.11.52.67.1180727129.squirrel@www.cse.iitb.ac.in>
On 6/1/07 3:45 PM, Seema S. Ravandale wrote:
> int b; //local variable
>
> array[b] = c
>
> will be translated to
> b.0 = b;
> array[b.0] = c
>
> anything to do with SSA?
Is 'b' an addressable variable or is it a regular local stack variable?
If the latter, then this is a buglet in the conversion to GIMPLE form.
We should probably check whether the array index is already a gimple
register before creating b.0.
It's not a big issue, though. Copy propagation should get rid of that
very early on, but I agree that it would be worth fixing.