[PATCH] Fix ifcvt ICE

Eric Botcazou ebotcazou@adacore.com
Wed Oct 13 08:18:00 GMT 2010


> So this patch is quite simple: implement two replacement functions
> find_active_insn_before/after() that correct the above mentioned
> behavior, and use them in ifcvt.

OK on principle, but the implementation isn't fully correct because it uses 
BLOCK_FOR_INSN and this isn't defined for BARRIERs.

Please add a BB parameter to both functions and test against BB_HEAD or BB_END 
to stop the iteration, like in first_active_insn/last_active_insn.

-- 
Eric Botcazou



More information about the Gcc-patches mailing list