Skip to content

Commit f052327

Browse files
committed
Small optimization in IterativeIDESolver, based on AllTop
1 parent 5257376 commit f052327

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

include/phasar/DataFlow/IfdsIde/Solver/IterativeIDESolver.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,13 @@ class IterativeIDESolver
519519
uint32_t FunId, EdgeFunctionPtrType LocalEF)
520520
requires ComputeValues
521521
{
522+
523+
if (llvm::isa<AllTop<l_t>>(LocalEF)) {
524+
// Don't store the default edge-function, which essentially denotes a
525+
// killed fact
526+
return false;
527+
}
528+
522529
auto &EF = JumpFns.getOrCreate(combineIds(SourceFact, LocalFact));
523530
if (!EF) {
524531
EF = std::move(LocalEF);

0 commit comments

Comments
 (0)