This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: INSN_UID same for two insns?


Sorry for the bad code previously; I post again :

        for (b=0;b<n_basic_blocks;++b){
                insn=BASIC_BLOCK(b)->head;
		while (insn){
			if (insn==BASIC_BLOCK(b)->end)
					break;
			insn=next_real_insn(insn);
		}
	}

#
#
#Hi,
#
#Is the basic block information available in the final()?
#
#The BASIC_BLOCK(b)->end is sometimes pointing to an instruction in some
#other basic block. Or is it that it is just another bug?
#
#I am traversing the instruction in the following way :
#
#        for (b=0;b<n_basic_blocks;++b){
#                insn=BASIC_BLOCK(b)->head;
#                if (insn==BASIC_BLOCK(b)->end)
#                                break;
#                insn=next_real_insn(insn);
#
#	}
#
#Warm regards
#Krishna
#
#
#

-- 
Homepage:http://www.cs.purdue.edu/homes/nvk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]