This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Induction Variable
- From: Rajkishore Barik <rajbarik at in dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 28 May 2005 02:45:36 -0400
- Subject: Induction Variable
Hi,
Can someone tell me how to obtain the following:
1) Given a rtx, find out if it is an induction variable.
2) For an induction variable, find all the loop nest
3) For each loopnest, find the corresponding upper and lower bounds
(compile-time)
4) For an induction variables, find the increment/decrement value
I tried using the "iv_analysis_init(loop)", "iv_analyze()" and
"iv_iv_analysis_done()". However,
since I am calling these functions later in the stage (just before
register allocation), they give me
ICE. Any clue?
Aliasing:
5) Given two mem-rtx "a" and "b" find if they alias to each other. Assume
that "a" and "b"
represent programmer defined arrays which are never assigned directly. I
looked at the code
of alias.c, but the interfaces are not clear to me as to how they should
be used to get what I want.
regards,
Raj