Prevent exponential range calculations.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 10 Jan 2022 18:33:44 +0000 (13:33 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 11 Jan 2022 14:21:12 +0000 (09:21 -0500)
commit71b72132011a47a4b39950d95718f18d1218978c
tree4aba44f3eb45991a4c9a255e32babd12ac8e0cc0
parent4f34f8cc1d064bfaaed723312c71e92f495d429b
Prevent exponential range calculations.

Produce a summary result for any operation involving too many subranges.

PR tree-optimization/103821
* range-op.cc (range_operator::fold_range): Only do precise ranges
when there are not too many subranges.
gcc/range-op.cc