Re: Dataflow question

2007-11-27 Thread Paolo Bonzini
Rask Ingemann Lambertsen wrote: I have a simple loop over the defs of an INSN, looking for the def of a specific register X: Should I just compare register numbers instead? I think so, or maybe even use reg_overlap_mentioned_p. It depends what you're doing. For 4.4, it may be worth mo

Dataflow question

2007-11-27 Thread Rask Ingemann Lambertsen
I have a simple loop over the defs of an INSN, looking for the def of a specific register X: struct df_ref **defs; for (defs = DF_INSN_DEFS (insn); *defs && !rtx_equal_p (DF_REF_REG (*defs), x); defs++) ; It doesn't work because the modes don't match: (gdb) call debug