Displaying 2 results from an estimated 2 matches for "condproduc".
Did you mean:
condproducer
2003 Sep 09
2
[LLVMdev] induction variables
...ap loop exiting BasicBlocks to InductionVariables. That is,
can we use these tools to identify the loop condition.
What i have tried
Function Pass:
foreach BB
if(terminal is loop exit of containing loop)
trace back to instruction producing the cond that the
branch branches on - condProducer
foreach(inst in loop header)
if(isa PHI )
if(PHI uses condProducer)
Run InductionVariables on this PHI Loop pair,
save result
Problems I have encountered:
Often the induction variable is stored in memory,
--basicaa --ds-aa --steens-aa -aa-eval --licm --i...
2003 Sep 09
0
[LLVMdev] induction variables
...lso, we don't compute "trip count"
which would be useful to you as well.
> What i have tried
> Function Pass:
> foreach BB
> if(terminal is loop exit of containing loop)
> trace back to instruction producing the cond that the
> branch branches on - condProducer
> foreach(inst in loop header)
> if(isa PHI )
> if(PHI uses condProducer)
> Run InductionVariables on this PHI Loop pair,
> save result
That is reasonable. If it were me, I would structure it like this:
Function Pass:
postorder traverse...