Displaying 1 result from an estimated 1 matches for "random_chunks".
2014 Apr 07
2
[LLVMdev] Loop unswitching creates dead code
Hi,
I'm surprised by the result of compiling the following lines of code:
for (int i = 0; i < RANDOM_CHUNKS; i++) {
for (int j = 0; j < RANDOM_CHUNK_SIZE; j++) {
random_text[i][j] = (int)(ran()*256);
}
}
The problem happens when -fsanitize=undefined, -fno-sanitize-recover and
-O3 are enabled. In this case, UndefinedBehaviorSanitizer inserts check for
array index out of bounds, and for...