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.
Mark
I'd say PragmaCount != 0 because it's an integer.