This is an archive of the discontinued LLVM Phabricator instance.

Add new llvm.loop.unroll.enable metadata
ClosedPublic

Authored by meheff on Aug 3 2015, 3:44 PM.

Details

Summary

This change adds the unroll metadata "llvm.loop.unroll.enable" which directs
the optimizer to unroll a loop fully if the trip count is known at compile time, and
unroll partially if the trip count is not known at compile time. This differs from
"llvm.loop.unroll.full" which explicitly does not unroll a loop if the trip count is not
known at compile time.

Corresponding clang patch which maps "#pragma unroll" to the new
"llvm.loop.unroll.enable" metadata: http://reviews.llvm.org/D11738

Diff Detail

Event Timeline

meheff updated this revision to Diff 31279.Aug 3 2015, 3:44 PM
meheff retitled this revision from to Add new llvm.loop.unroll.enable metadata.
meheff updated this object.
meheff added reviewers: TylerNowicki, hfinkel.
meheff added subscribers: cfe-commits, llvm-commits.
hfinkel accepted this revision.Aug 10 2015, 2:50 AM
hfinkel edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Aug 10 2015, 2:50 AM
meheff closed this revision.Aug 10 2015, 10:32 AM