tree-object-size: Clean up unknown propagation
commitf9be3d8faa4780e1ac9d51121c5ecf6c95d165e3
authorSiddhesh Poyarekar <siddhesh@gotplt.org>
Mon, 18 Dec 2023 19:28:28 +0000 (18 14:28 -0500)
committerSiddhesh Poyarekar <siddhesh@gotplt.org>
Wed, 20 Dec 2023 14:32:08 +0000 (20 09:32 -0500)
treeff0e0f082ed93c013a5edf9f0819832767d6bd03
parent4d9d015cf4054f5f9df14a2c11ce81379b6caf0f
tree-object-size: Clean up unknown propagation

Narrow down scope of the unknowns bitmap so that it is only accessible
within the reexamination process.  This also removes any role of unknown
propagation from object_sizes_set, thus simplifying that code path a
bit.

gcc/ChangeLog:

* tree-object-size.cc (object_size_info): Remove UNKNOWNS.
Drop all references to it.
(object_sizes_set): Move unknowns propagation code to...
(gimplify_size_expressions): ... here.  Also free reexamine
bitmap.
(propagate_unknowns): New parameter UNKNOWNS.  Update callers.

Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
gcc/tree-object-size.cc