Create a legacy pass that combines instructions into fewer, simpler forms.

Synopsis

Declared in <llvm/Transforms/InstCombine/InstCombine.h>

FunctionPass*
createInstructionCombiningPass();

Description

This pass does not modify the CFG, and has a tendency to make instructions dead, so a subsequent DCE pass is useful. For example, it combines: %Y = add int 1, %X %Z = add int 1, %Y into: %Z = add int 2, %X

Return Value

An owning pointer to the newly created FunctionPass.

Created with MrDocs