<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-signature"><font color="#330033">I am trying to
implement loop unrolling in a context, where lots of constant
propagation has taken place.<br>
Unrolling an outer loop might make an inner loop have constant
bounds, therefore I want to process the loops<br>
outside in, i.e. from parent loops to nested loops.<br>
Unfortunately the standard loop pass manager performs loop
passes inside out, i.e. from nested loops to parent loops,<br>
thereby missing optimization opportunities in my case.<br>
<br>
I haven't found a way how to implement this on my own. I tried
implementing a function pass, where I could process the<br>
loops outside in. Unfortunately I cannot use the UnrollLoop
utility function in this case, which crashes, when called with a
<br>
NULL LPPassManager object, despite opposite documentation.<br>
<br>
Is there any way how to process loops outside in still using the
UnrollLoop function?<br>
<br>
Martin<br>
<br>
</font></div>
</body>
</html>