Unverified Commit f4bbcac2 authored by yronglin's avatar yronglin Committed by GitHub
Browse files

[Clang] Allow the value of unroll count to be zero in `#pragma GCC unroll`...

[Clang] Allow the value of unroll count to be zero  in `#pragma GCC unroll` and `#pragma unroll` (#88666)

Fixes https://github.com/llvm/llvm-project/issues/88624

GCC allows the value of loop unroll count to be zero, and the values of
0 and 1 block any unrolling of the loop. This PR aims to make clang
keeps the same behavior with GCC.
https://gcc.gnu.org/onlinedocs/gcc/Loop-Specific-Pragmas.html



---------

Signed-off-by: default avataryronglin <yronglin777@gmail.com>
parent d3925e65
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment