HomePhabricator

Add new llvm.loop.unroll.enable metadata.

Description

Add new llvm.loop.unroll.enable metadata.

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.

The "llvm.loop.unroll.enable" is intended to be added for loops annotated with
"#pragma unroll".

Details

Committed
meheffAug 10 2015, 10:28 AM
Parents
rL244465: Typo. Move comment closer to relevant code. NFC.
Branches
Unknown
Tags
Unknown