[PATCH] D128064: [Static Analyzer] Small array binding policy

2022-06-30 Thread Kristóf Umann via Phabricator via cfe-commits
Szelethus added a comment. Herald added a subscriber: steakhal. No need for post commit fixes, just general observations since I noticed them. Comment at: clang/lib/StaticAnalyzer/Core/RegionStore.cpp:2427 + uint64_t ArrSize = CAT->getSize().getLimitedValue(); + if (ArrSize >

[PATCH] D128064: [Static Analyzer] Small array binding policy

2022-06-18 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. There's nothing immediately wrong with this patch so no need to revert it. It makes sense to revert a patch if it breaks buildbots or if there's no fix coming soon (eg. if we're about to have an entire LLVM release broken). If there was a revert it would have made sense to

[PATCH] D128064: [Static Analyzer] Small array binding policy

2022-06-18 Thread Domján Dániel via Phabricator via cfe-commits
isuckatcs added a comment. What's out desired approach for that? Create a new patch, or update this one? Also, should I commit it as usual, or revert this commit first? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D128064/new/ https://reviews.llvm

[PATCH] D128064: [Static Analyzer] Small array binding policy

2022-06-17 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Another magic number around these parts is 4, which is our loop iteration budget. If an array is initialized by a loop with unknown bounds, it'll have 4 bindings. So I think it makes sense to reduce the default to 4 just because weird things may start happening above this t

[PATCH] D128064: [Static Analyzer] Small array binding policy

2022-06-17 Thread Domján Dániel via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG92bf652d4074: [Static Analyzer] Small array binding policy (authored by isuckatcs). Herald added a subscriber: cfe-commits. Changed prior to commit: