This is an archive of the discontinued LLVM Phabricator instance.

Tweak EarlyCSE to recognize series of dead stores
ClosedPublic

Authored by reames on Nov 17 2014, 5:39 PM.

Details

Summary

EarlyCSE is giving up on the current instruction immediately when it recognizes that the current instruction makes a previous store trivially dead. There's no reason to do this. Once the previous store has been deleted, it's perfectly legal to remember the value of the current store (for value forwarding) and the fact the store occurred (it could be dead too!).

Diff Detail

Repository
rL LLVM

Event Timeline

reames updated this revision to Diff 16311.Nov 17 2014, 5:39 PM
reames retitled this revision from to Tweak EarlyCSE to recognize series of dead stores.
reames updated this object.
reames edited the test plan for this revision. (Show Details)
reames added reviewers: hfinkel, nlewycky, craig.topper.
reames added a subscriber: Unknown Object (MLST).
hfinkel accepted this revision.Nov 17 2014, 8:21 PM
hfinkel edited edge metadata.

Seems to make sense. LGTM.

This revision is now accepted and ready to land.Nov 17 2014, 8:21 PM
reames closed this revision.Nov 18 2014, 9:46 AM
reames updated this revision to Diff 16341.

Closed by commit rL222241 (authored by @reames).