[PATCH] Do not add unroll disable metadata after unrolling pass for loops with #pragma clang loop unroll(full)
meheff at google.com
Wed Jul 23 11:43:13 PDT 2014
Currently all loop unrolling hint metadata is removed after a loop is unrolled and this metadata is replaced with metadata which disables further unrolling (llvm.loop.unroll.disable). This makes sense for the hint which specify loop unroll factor, that is "llvm.loop.unroll.count N" which would be added for "#pragma clang loop unroll_count(N)"). This prevents unrolling beyond what the pragma specified. However, disabling further unrolling doesn't make sense for full unrolling metadata in which we want to keep trying to unroll the loop in subsequent unrolling passes. This patch fixes this oversight by leaving full unrolling metadata in place after unrolling.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4941 bytes
Desc: not available
More information about the llvm-commits