aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorYitzhak Mandelbaum <yitzhakm@google.com>2022-12-27 14:21:29 +0000
committerYitzhak Mandelbaum <yitzhakm@google.com>2023-01-05 21:46:39 +0000
commit5e8f597c2fedc740b71f07dfdb1ef3c2d348b193 (patch)
tree8ef2f0a7db76686b8faad09f0dc7a051b99440ff /llvm/unittests/Support/CommandLineTest.cpp
parent69f2b5fcf1be2226181cce21066f072279ba5d14 (diff)
downloadllvm-5e8f597c2fedc740b71f07dfdb1ef3c2d348b193.zip
llvm-5e8f597c2fedc740b71f07dfdb1ef3c2d348b193.tar.gz
llvm-5e8f597c2fedc740b71f07dfdb1ef3c2d348b193.tar.bz2
[clang][dataflow] Only model struct fields that are used in the function being analyzed.
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 programss that use large structs. Note: This patch obviates the need for https://reviews.llvm.org/D123032. Differential Revision: https://reviews.llvm.org/D140694
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions