This is an archive of the discontinued LLVM Phabricator instance.

[CFLAA] Make CFLAnders conservative when it sees newly created values
ClosedPublic

Authored by grievejia on Jul 29 2016, 5:08 PM.

Details

Summary

Currently CFLAnders only keeps track of values that do aliases. As a result, if it sees a value that's created after the analysis gets executed, it will automatically assume that value does not alias anything since the value is not in its record.

This patch tries to fix the problem by modifying attribute lookup process to let it shield the alias lookups. Now CFLAnders's AttrMap will try to store every value it has seen before, and if it sees a new value, return AttrUnknown immediately to guarantee that no AliasMap lookup will be conducted.

Diff Detail

Repository
rL LLVM

Event Timeline

grievejia updated this revision to Diff 66199.Jul 29 2016, 5:08 PM
grievejia retitled this revision from to [CFLAA] Make CFLAnders conservative when it sees newly created values.
grievejia updated this object.
grievejia added a subscriber: llvm-commits.
george.burgess.iv edited edge metadata.

LGTM, thanks!

This revision is now accepted and ready to land.Aug 1 2016, 11:11 AM
This revision was automatically updated to reflect the committed changes.