This is an archive of the discontinued LLVM Phabricator instance.

[LSR] Create fewer redundant instructions.
ClosedPublic

Authored by gberry on Mar 9 2016, 10:39 AM.

Details

Summary

Fix LSRInstance::HoistInsertPosition() to check the original insert
position block first for a canonical insertion point that is dominated
by all inputs. This leads to SCEV being able to reuse more instructions
since it currently tracks the instructions it creates for reuse by
keeping a table of <Value, insert point> pairs.

Diff Detail

Event Timeline

gberry updated this revision to Diff 50158.Mar 9 2016, 10:39 AM
gberry retitled this revision from to [LSR] Create fewer redundant instructions..
gberry updated this object.
gberry added a reviewer: atrick.
gberry added a subscriber: llvm-commits.

Ping? FWIW this should be a fairly quick review.

qcolombet accepted this revision.Mar 16 2016, 9:50 AM
qcolombet added a reviewer: qcolombet.
qcolombet added a subscriber: qcolombet.

Hi Geoff,

LGTM.

Cheers,
-Quentin

This revision is now accepted and ready to land.Mar 16 2016, 9:50 AM
This revision was automatically updated to reflect the committed changes.