This is an archive of the discontinued LLVM Phabricator instance.

[NewGVN] Reduce code duplication for load/store equality
ClosedPublic

Authored by davide on Dec 26 2016, 6:06 AM.

Details

Summary

These two functions are almost exactly the same, so I decided to factor them out.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 82497.Dec 26 2016, 6:06 AM
davide retitled this revision from to [NewGVN] Reduce code duplication for load/store equality.
davide updated this object.
davide added a reviewer: dberlin.
davide added a subscriber: llvm-commits.
dberlin edited edge metadata.Dec 26 2016, 10:34 AM

Actually, they are identical, aren't they?
I don't think you even need to template it

Actually, they are identical, aren't they?
I don't think you even need to template it

I can use the closest base to {Load,Store}Expression, that is BasicExpression instead of the template but that has no getDefiningAccess(), do you prefer me to move the function there instead of templating?

This revision was automatically updated to reflect the committed changes.