Displaying 9 results from an estimated 9 matches for "brsecondsucc".
2012 Feb 08
2
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...e();
> assert(ExitBr->isConditional() && "If unconditional, it can't be in loop!");
>
> + BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
> + getSuccessor(0)->getTerminator());
> + BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
> + getSuccessor(1)->getTerminator());
> +
> // At this point, we know we have a conditional branch that
> determines whether
> // the loop is exited. However, we don't know if the branch...
2012 Feb 08
2
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...handle switch instructions (with a
single exit)
BranchInst *ExitBr = dyn_cast<BranchInst>(ExitingBlock->getTerminator());
+ BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
+ getSuccessor(0)->getTerminator());
+ BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
+ getSuccessor(1)->getTerminator());
+
if (ExitBr == 0) return getCouldNotCompute();
assert(ExitBr->isConditional() && "If unconditional, it can't be in loop!");
@@ -4315,8 +4320,1...
2012 Feb 08
0
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...eturn getCouldNotCompute();
assert(ExitBr->isConditional() && "If unconditional, it can't be in loop!");
+ BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
+ getSuccessor(0)->getTerminator());
+ BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
+ getSuccessor(1)->getTerminator());
+
// At this point, we know we have a conditional branch that
determines whether
// the loop is exited. However, we don't know if the branch is executed each
//...
2012 Feb 08
2
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...tBr->isConditional() && "If unconditional, it can't be in
>> > loop!");
>> >
>> > + BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
>> > +
>> > getSuccessor(0)->getTerminator());
>> > + BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
>> > +
>> > getSuccessor(1)->getTerminator());
>> > +
>> > // At this point, we know we have a conditional branch that
>> > determines whether
>> > // the loop is exited. However, we don't kn...
2012 Feb 08
0
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...tCompute();
> > assert(ExitBr->isConditional() && "If unconditional, it can't be in
> loop!");
> >
> > + BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
> > +
> getSuccessor(0)->getTerminator());
> > + BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
> > +
> getSuccessor(1)->getTerminator());
> > +
> > // At this point, we know we have a conditional branch that
> > determines whether
> > // the loop is exited. However, we don't know if the branch is
> exec...
2012 Feb 09
2
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...nal, it can't be in
>> >> > loop!");
>> >> >
>> >> > + BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
>> >> > +
>> >> > getSuccessor(0)->getTerminator());
>> >> > + BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
>> >> > +
>> >> > getSuccessor(1)->getTerminator());
>> >> > +
>> >> > // At this point, we know we have a conditional branch that
>> >> > determines whether
>> >> &...
2012 Feb 08
0
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...amp; "If unconditional, it can't be in
> >> > loop!");
> >> >
> >> > + BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
> >> > +
> >> > getSuccessor(0)->getTerminator());
> >> > + BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
> >> > +
> >> > getSuccessor(1)->getTerminator());
> >> > +
> >> > // At this point, we know we have a conditional branch that
> >> > determines whether
> >> > // the loop is exi...
2012 Feb 09
0
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...>>> >> > loop!");
>>> >> >
>>> >> > + BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
>>> >> > +
>>> >> > getSuccessor(0)->getTerminator());
>>> >> > + BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
>>> >> > +
>>> >> > getSuccessor(1)->getTerminator());
>>> >> > +
>>> >> > // At this point, we know we have a conditional branch that
>>> >> > determines whether...
2012 Feb 09
1
[LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
...; > loop!");
>>>> >> >
>>>> >> > + BranchInst* BrFirstSucc = dyn_cast<BranchInst>(ExitBr->
>>>> >> > +
>>>> >> > getSuccessor(0)->getTerminator());
>>>> >> > + BranchInst* BrSecondSucc = dyn_cast<BranchInst>(ExitBr->
>>>> >> > +
>>>> >> > getSuccessor(1)->getTerminator());
>>>> >> > +
>>>> >> > // At this point, we know we have a conditional branch that
>>>> >> >...