diff options
author | Kristof Umann <dkszelethus@gmail.com> | 2019-07-05 12:17:44 +0000 |
---|---|---|
committer | Kristof Umann <dkszelethus@gmail.com> | 2019-07-05 12:17:44 +0000 |
commit | 5e17ee1e35e4535b51c749186ffbec694b06494b (patch) | |
tree | aba47f3dfb78d06f7cb78c41b711b8b8773de907 /llvm/lib/CodeGen/GCRootLowering.cpp | |
parent | 6884d5e0403cb082b52e560459687c9e5db61718 (diff) | |
download | bcm5719-llvm-5e17ee1e35e4535b51c749186ffbec694b06494b.tar.gz bcm5719-llvm-5e17ee1e35e4535b51c749186ffbec694b06494b.zip |
[analyzer][IDF] Add a control dependency calculator + a new debug checker
I intend to improve the analyzer's bug reports by tracking condition
expressions.
01 bool b = messyComputation();
02 int i = 0;
03 if (b) // control dependency of the bug site, let's explain why we assume val
04 // to be true
05 10 / i; // warn: division by zero
I'll detail this heuristic in the followup patch, strictly related to this one
however:
* Create the new ControlDependencyCalculator class that uses llvm::IDFCalculator
to (lazily) calculate control dependencies for Clang's CFG.
* A new debug checker debug.DumpControlDependencies is added for lit tests
* Add unittests
Differential Revision: https://reviews.llvm.org/D62619
llvm-svn: 365197
Diffstat (limited to 'llvm/lib/CodeGen/GCRootLowering.cpp')
0 files changed, 0 insertions, 0 deletions