<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin:0;">Hi, there.</div><div style="margin:0;"><br></div><div style="margin:0;">I want to figure out how the unroll-loop pass is controlled by clang. which option or struct in the source code tell the unroll-loop pass to work or not to work?</div><div style="margin:0;">include/clang/Basic/CodeGenOptions.def<br></div><div style="margin:0;">----------------------------------------------------------------------------------------</div><div style="margin:0;">CODEGENOPT(UnrollLoops       , 1, 1) ///< Control whether loops are unrolled.</div><div style="margin:0;">-----------------------------------------------------------------------------------------</div><div style="margin:0;">I tried to modify the above option. The second "1" is "0" initially. I modified the original "0" to "1". But clang would do the unroll-loop pass whether it is "0" or "1".</div><div style="margin:0;">I wonder how clang instructs the unroll-loop pass to work or not to work?</div><div style="margin:0;"><br></div><div style="margin:0;">Thanks,</div><div style="margin:0;">Jerry</div><div style="margin:0;"><br></div></div><br><br><span title="neteasefooter"><p> </p></span>