aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-11-18 09:40:45 +0100
committerJakub Jelinek <jakub@redhat.com>2020-11-18 09:40:45 +0100
commitba009860aec4619f2424f5bdee812f14572dc3cc (patch)
treecbe449b1f6e3baf02b709d47d3fcde2c9007792f /libphobos/src
parent4b81528241ca682025d92558ff6aeec91dafdca8 (diff)
downloadgcc-ba009860aec4619f2424f5bdee812f14572dc3cc.zip
gcc-ba009860aec4619f2424f5bdee812f14572dc3cc.tar.gz
gcc-ba009860aec4619f2424f5bdee812f14572dc3cc.tar.bz2
openmp: Fix ICE on non-rectangular loop with known 0 iterations
The loops in the testcase are non-rectangular and have 0 iterations (the outer loop iterates, but the inner one never). In this case we just have the overall number of iterations computed (0), and don't have factor and other values computed. We never need to map logical iterations to the individual iterations in that case, and we were crashing during expansion of that code. 2020-11-18 Jakub Jelinek <jakub@redhat.com> PR middle-end/97862 * omp-expand.c (expand_omp_for_init_vars): Don't use the sqrt path if number of iterations is constant 0. * c-c++-common/gomp/pr97862.c: New test.
Diffstat (limited to 'libphobos/src')
0 files changed, 0 insertions, 0 deletions