Revert "Revert "[clang][dataflow] Only model struct fields that are used in...
Revert "Revert "[clang][dataflow] Only model struct fields that are used in the function being analyzed."" This reverts commit 2b1a517a. It's a fix forward with two memory errors fixed, one of which was the cause of the build breakage in the buildbots. Original message: Previously, the model for structs modeled all fields in a struct when `createValue` was called for that type. This patch adds a prepass on the function under analysis to discover the fields referenced in the scope and then limits modeling to only those fields. This reduces wasted memory usage (modeling unused fields) which can be important for programs that use large structs. Note: This patch obviates the need for https://reviews.llvm.org/D123032.
Loading
Please sign in to comment