On 9/16/07, ranjith kumar <ranjit_kumar_b4u@xxxxxxxxxxx> wrote: > I want to know whether the returned pointer to the > statement is a pointer to an 'PHI node' or pointer to > a 'tree node'. It's always a 'tree'. If you want to know if it's a PHI node or a MODIFY_EXPR or a CALL_EXPR or an ASM_EXPR, you need to use TREE_CODE: if (TREE_CODE (SSA_NAME_DEF_STMT (name)) == PHI_NODE).