This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: use getAlignment in isAligned
ClosedPublic

Authored by apilipenko on Oct 7 2015, 10:05 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

apilipenko updated this revision to Diff 36759.Oct 7 2015, 10:05 AM
apilipenko retitled this revision from to ValueTracking: use getAlignment in isAligned.
apilipenko updated this object.
apilipenko added reviewers: reames, hfinkel.
apilipenko added a subscriber: llvm-commits.
reames accepted this revision.Oct 8 2015, 10:04 AM
reames edited edge metadata.

LGTM. Thanks for separating; this is obvious standalone, but I was getting it confused in the last patch.

lib/Analysis/ValueTracking.cpp
3002 ↗(On Diff #36759)

Could this check be moved inside getAlignment? If so, that might be a good follow on change?

This revision is now accepted and ready to land.Oct 8 2015, 10:04 AM
This revision was automatically updated to reflect the committed changes.