This is an archive of the discontinued LLVM Phabricator instance.

[LV] Use ScalarEvolution::getURemExpr to reduce duplication.
ClosedPublic

Authored by fhahn on Dec 22 2020, 1:39 AM.

Details

Summary

ScalarEvolution should be able to handle both constant and variable trip
counts using getURemExpr, so we do not have to handle them separately.

This is a small simplification of a56280094e08.

Diff Detail

Event Timeline

fhahn created this revision.Dec 22 2020, 1:39 AM
fhahn requested review of this revision.Dec 22 2020, 1:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2020, 1:39 AM
gilr accepted this revision.Dec 22 2020, 5:49 AM

LGTM, thanks!

This revision is now accepted and ready to land.Dec 22 2020, 5:49 AM