-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Code Generation Tools
-
CODEGEN-13507
-
C29_1.0.0.LTS
-
-
default
-
When compiling with -O3, loops that have known trip counts may fail to execute the loop body as many times as instructed by the source code, leading to incorrect results.
Example of a loop which may be affected:
float *in, *out;
for (int i = 0; i < 4; ++i) {
out[i] = 0.0f;
for (int height = 0; height < 7; ++height) {
for (int width = 0; width < 6; ++width)
}
}