This is an archive of the discontinued LLVM Phabricator instance.

Add an extension point for peephole optimizers.
ClosedPublic

Authored by pcc on May 24 2014, 9:14 PM.

Details

Summary

This extension point allows adding passes that perform peephole optimizations
similar to the instruction combiner. These passes will be inserted after
each instance of the instruction combiner pass.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 9786.May 24 2014, 9:14 PM
pcc retitled this revision from to Add an extension point for peephole optimizers..
pcc updated this object.
pcc edited the test plan for this revision. (Show Details)
pcc added a reviewer: chandlerc.
pcc added a subscriber: Unknown Object (MLST).
chandlerc accepted this revision.May 25 2014, 12:49 AM
chandlerc edited edge metadata.

This makes a lot of sense to me, and the patch LGTM. Please commit.

I wonder if we want to distinguish between an early, canonicalizing peephole and a late target-specific peephole? Certainly, this patch is fine, just food for thought if this ever comes up.

This revision is now accepted and ready to land.May 25 2014, 12:49 AM
pcc closed this revision.May 25 2014, 3:34 AM
pcc updated this revision to Diff 9787.

Closed by commit rL209595 (authored by @pcc).