Unverified Commit 99ddd77e authored by modiking's avatar modiking Committed by GitHub
Browse files

[LoopUnroll] Introduce PragmaUnrollFullMaxIterations as a hard cap on how many...

[LoopUnroll] Introduce PragmaUnrollFullMaxIterations as a hard cap on how many iterations we try to unroll (#78648)

Fixes [PR77842](https://github.com/llvm/llvm-project/issues/77842

) where
UBSAN causes pragma full unroll to try and unroll INT_MAX times. This
sets a cap to make sure we don't attempt this and crash the compiler.

Testing:
ninja check-all with new test

---------

Co-authored-by: default avatarNikita Popov <github@npopov.com>
parent c3291253
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