Skip to content

dkdna/llvm-optimization-pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llvm-optimization-pass

A few simple optimization passes implemented for LLVM IR.

The optimization passes implemented are:

  • Strength Reduction
  • Constant Folding
  • Dead Code Elimination
  • Common Subexpression Elimination

A few example input files are in the examples directory.

Build/Run Instructions

Run build.sh to build the LLVM IR optimization passes (make sure to replace CC and LLVM_DIR with your paths).

Run run.sh with the first argument as your target .c file to see the optimization passes in action.

About

A few optimization passes implemented for LLVM IR

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published