Displaying 1 result from an estimated 1 matches for "exitingcount".
2018 Nov 27
2
ScalarEvolution class returns no valid loop exit count
...rapperPass TLI =
TargetLibraryInfoWrapperPass(TLII);
LoopInfo LI = LoopInfo(DT);
LI.analyze(DT);
*ScalarEvolution SE = ScalarEvolution(*func, TLI.getTLI(),AC,
DT, LI);*
BasicBlock * exitingblock = L->getUniqueExitBlock();
const SCEV * exitingcount = SE.getExitCount (L,exitblock );
}
}
}
......
Unfortunately I get this result by printing the SCEV exitingcount variable:
***COULDNOTCOMPUTE***
It has been tested that the exitingblock of the loop was calculated
successfully.
The LLVM IR is parsed and analysed without the usual pass...