This is an archive of the discontinued LLVM Phabricator instance.

[LV] Minor fixes to Sink casts to unravel first order recurrence
ClosedPublic

Authored by Ayal on Aug 7 2017, 9:27 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

Ayal created this revision.Aug 7 2017, 9:27 AM
mssimpso added inline comments.Aug 10 2017, 8:59 AM
lib/Transforms/Utils/LoopUtils.cpp
568 ↗(On Diff #110018)

Is it worth adding a test case for this? I'm not sure...

Ayal updated this revision to Diff 110878.Aug 13 2017, 9:28 AM

Is it worth adding a test case for this? I'm not sure...

Can add a check that a cast wasn't moved needlessly, as in the augmented version uploaded.

mssimpso accepted this revision.Aug 14 2017, 7:46 AM

LGTM.

This revision is now accepted and ready to land.Aug 14 2017, 7:46 AM
This revision was automatically updated to reflect the committed changes.