<html dir=""><head><style id="axi-htmleditor-style" type="text/css">p { margin: 0px; }</style></head><body style="font-size: 10pt; font-family: Arial; background-image: none; background-repeat: repeat; background-attachment: fixed;">​Dear all,<br><br>I have written a code and used a function for pass manager in llvmlite. I used the following function:<br>def create_pass_manager_builder(opt=3, loop_vectorize=False, slp_vectorize=False):<br> pmb = llvm.create_pass_manager_builder()<br> pmb.opt_level = opt<br> pmb.loop_vectorize = loop_vectorize<br> pmb.populate = populate<br> pmb.add_dead_code_elimination_pass = add_dead_code_elimination_pass<br> pmb.slp_vectorize = slp_vectorize<br> pmb.inlining_threshold = _inlining_threshold(opt)<br> pmb.add_global_dce_pass = add_global_dce_pass<br> pmb.add_global_optimizer_pass = add_global_optimizer_pass<br> pmb.add_ipsccp_pass = add_ipsccp_pass<br> return pmb<br><br><br>and using the following:<br><br><br>module_ref = llvm1.parse_assembly(str(module))<br>pmb = llvm.create_pass_manager_builder()<br>pmb.opt_level = 3<br>pm = llvm.create_module_pass_manager()<br>pmb.populate(pm)<br>pm.run(module_ref)<br><br><br>I tried to run my module pass manager. However, when i change the level of optimization, I can not see any differences on output of my code in term of optimization. I think there should be a difference between opt-level = 0 and opt-level = 3. does anyone have any idea about that? <br><br>Best Regards<br><br></body></html><pre>
--
This email was Anti Virus checked by Security Gateway.</pre>