search for: exitcond21

Displaying 1 result from an estimated 1 matches for "exitcond21".

Did you mean: exitcond27
2012 Jul 30
0
[LLVMdev] IR optimization pass ideas for backend porting before ISel
...17 = icmp sgt i32 %sub2, 0 %cmp317 = icmp sgt i32 %indvars.iv, 0 br i1 %cmp317, label %for.body4.lr.ph, label %for.inc14 for.inc14: ; preds = %for.inc, %for.cond1.preheader ;%inc15 = add nsw i32 %i.020, 1 %indvars.iv.next = add i32 %indvars.iv, -1 ;%exitcond21 = icmp eq i32 %inc15, %sub %exitcond21 = icmp eq i32 %indvars.iv.next, 0 br i1 %exitcond21, label %for.end16, label %for.cond1.preheader I think, the condition for applying such PHI optimization are 1) the same entry points for several PHI instructions in one basic block, such as %for.inc14...