This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] morph an existing instruction instead of creating a new one
ClosedPublic

Authored by spatel on Apr 9 2017, 9:52 AM.

Details

Summary

One potential way to make InstCombine (very slightly?) faster is to recycle instructions when possible instead of creating new ones. It's not explicitly stated AFAIK, but we don't consider this an "InstSimplify". We could, however, make a new layer to house transforms like this if that makes InstCombine more manageable (just throwing out an idea; not sure how much opportunity is actually here).

Diff Detail

Repository
rL LLVM

Event Timeline

spatel created this revision.Apr 9 2017, 9:52 AM
This revision is now accepted and ready to land.Apr 10 2017, 9:28 AM
This revision was automatically updated to reflect the committed changes.