This is an archive of the discontinued LLVM Phabricator instance.

[LIR] Set attributes on memset_pattern16.
ClosedPublic

Authored by ab on Feb 25 2016, 1:58 AM.

Details

Summary

"inferattrs" will deduce the attribute, but it will be too late for many optimizations.

Diff Detail

Repository
rL LLVM

Event Timeline

mehdi_amini retitled this revision from to Use the same attributes as "memset" when introducing a call to memset_pattern in LoopIdiom.
mehdi_amini updated this object.
mehdi_amini added a reviewer: mcrosier.
mehdi_amini added a subscriber: llvm-commits.
mcrosier added a subscriber: haicheng.

@haicheng, would you mind giving this a look? If not, I can look at this tomorrow.

haicheng edited edge metadata.Feb 25 2016, 12:14 PM

I have no problem with this change.

ab added a subscriber: ab.Feb 25 2016, 1:42 PM

This is IMO a little too hacky; what do you think of exposing inferattrs into a utility function?

In D17598#362168, @ab wrote:

This is IMO a little too hacky;

I tend to agree with Ahmed..

mcrosier resigned from this revision.Apr 19 2016, 1:18 PM
mcrosier removed a reviewer: mcrosier.
ab commandeered this revision.Apr 24 2016, 12:54 PM
ab updated this revision to Diff 54810.
ab added a reviewer: mehdi_amini.
ab retitled this revision from Use the same attributes as "memset" when introducing a call to memset_pattern in LoopIdiom to [LIR] Set attributes on memset_pattern16..
ab edited edge metadata.

Now that we have a unified way of setting attributes, use it.

Depends on D19470 and D19471.

mehdi_amini accepted this revision.Apr 26 2016, 11:11 PM
mehdi_amini edited edge metadata.

Thanks Ahmed. LGTM.

This revision is now accepted and ready to land.Apr 26 2016, 11:11 PM
This revision was automatically updated to reflect the committed changes.