On Fri, Dec 1, 2017 at 11:53 AM, Bin Cheng <bin.ch...@arm.com> wrote: > Hi, > This is a simple patch using dyn_cast instead of is_a<> and as_a<> as > suggested by review. > This is for branches/gimple-linterchange, bootstrap and test as when the > branch is created. Is it OK?
Ok. Richard. > Thanks, > bin > 2017-11-30 Bin Cheng <bin.ch...@arm.com> > > * gimple-loop-interchange.cc (is-a.h): New header file. > (loop_cand::find_reduction_by_stmt): Use dyn_cast instead of is_a<> > and as_a<>. > (loop_cand::analyze_iloop_reduction_var): Ditto. > (loop_cand::analyze_oloop_reduction_var): Ditto. Check gimple stmt > against phi node directly.