diff options
author | martinboehme <mboehme@google.com> | 2024-01-10 10:50:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 10:50:16 +0100 |
commit | 7ce010f2fb01341ab253547324e126d81d47f794 (patch) | |
tree | a81a91d37abff6d1c327e18ff7f0d73aeafb0f80 /clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp | |
parent | 7c71a09d5e712bedbed867226b3fa0bbfe789384 (diff) | |
download | llvm-7ce010f2fb01341ab253547324e126d81d47f794.zip llvm-7ce010f2fb01341ab253547324e126d81d47f794.tar.gz llvm-7ce010f2fb01341ab253547324e126d81d47f794.tar.bz2 |
Revert "[clang][dataflow] Add an early-out to `flowConditionImplies()` / `flowConditionAllows()`." (#77570)
Reverts llvm/llvm-project#77453
Diffstat (limited to 'clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp')
-rw-r--r-- | clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp b/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp index 500fbb3..fa11497 100644 --- a/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp +++ b/clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp @@ -174,9 +174,6 @@ Solver::Result DataflowAnalysisContext::querySolver( bool DataflowAnalysisContext::flowConditionImplies(Atom Token, const Formula &F) { - if (F.isLiteral(true)) - return true; - // Returns true if and only if truth assignment of the flow condition implies // that `F` is also true. We prove whether or not this property holds by // reducing the problem to satisfiability checking. In other words, we attempt @@ -191,9 +188,6 @@ bool DataflowAnalysisContext::flowConditionImplies(Atom Token, bool DataflowAnalysisContext::flowConditionAllows(Atom Token, const Formula &F) { - if (F.isLiteral(true)) - return true; - llvm::SetVector<const Formula *> Constraints; Constraints.insert(&arena().makeAtomRef(Token)); Constraints.insert(&F); |