Displaying 1 result from an estimated 1 matches for "add_constant_propagation".
2009 Feb 19
6
[LLVMdev] Improving performance with optimization passes
...truct into it and
read only one field without using the rest of the struct) and this does not
appear to be optimized 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, et...