Displaying 1 result from an estimated 1 matches for "add_instruction_combin".
2009 Feb 19
6
[LLVMdev] Improving performance with optimization passes
...ptimized away.
I simply copied the use of PassManager from the Kaleidoscope tutorial:
let pm = PassManager.create_function mp in
TargetData.add (ExecutionEngine.target_data ee) pm;
add_constant_propagation pm;
(* Do simple "peephole" optimizations and bit-twiddling optzn. *)
add_instruction_combining pm;
(* reassociate expressions. *)
add_reassociation pm;
(* Eliminate Common SubExpressions. *)
add_gvn pm;
(* Simplify the control flow graph (deleting unreachable blocks, etc). *)
add_cfg_simplification pm;
add_memory_to_register_promotion pm;
and then I apply "PassMana...