This is an archive of the discontinued LLVM Phabricator instance.

Only copy small types in modernize-loop-convert.
ClosedPublic

Authored by angelgarcia on Oct 29 2015, 7:42 AM.

Details

Summary

If the size of the type is above a certain bound, we'll take a const reference. This bound can be set as an option. For now, the default value is 16 bytes.

Diff Detail

Repository
rL LLVM

Event Timeline

angelgarcia retitled this revision from to Only copy small types in modernize-loop-convert..
angelgarcia updated this object.
angelgarcia added a reviewer: klimek.
angelgarcia added subscribers: cfe-commits, alexfh.
klimek accepted this revision.Oct 29 2015, 4:57 PM
klimek edited edge metadata.

lg

This revision is now accepted and ready to land.Oct 29 2015, 4:57 PM
angelgarcia closed this revision.Oct 30 2015, 2:40 AM
This revision was automatically updated to reflect the committed changes.