sdasgup3 / partial-redundancy-elimination

Partial Redundancy Elimination Pass in LLVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOI

Partial Redundancy Elimination (PRE)

PRE is a compiler optimization that eliminates expressions that are redundant on some but not necessarily all paths through a program. We implement a PRE optimization pass in the LLVM framework, and evaluate the benefits on a variety of applications. PRE is a powerful technique that subsumes Common Subexpression Elimination (CSE) and Loop Invariant Code Motion (LICM), and hence has a potential to greatly improve performance.

Commands

opts_lcm = "-mem2reg -loop-rotate -reassociate -lcm -mem2reg -simplifycfy;

$opt -load $load_pass $opts_lcm $test.bc -o $test-lcm.bc

About

Partial Redundancy Elimination Pass in LLVM

License:MIT License


Languages

Language:TeX 66.3%Language:C++ 30.2%Language:C 2.0%Language:Makefile 1.5%