Skip to content

Commit 6af8948

Browse files
Merge pull request #783 from jbj/ir-reachable-perf
C++: Speed up getAFeasiblePredecessorBlock
2 parents f147b63 + 6b9aaf6 commit 6af8948

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/reachability/ReachableBlock.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ predicate isInfeasibleInstructionSuccessor(Instruction instr, EdgeKind kind) {
1313
)
1414
}
1515

16+
pragma[noinline]
1617
predicate isInfeasibleEdge(IRBlockBase block, EdgeKind kind) {
1718
isInfeasibleInstructionSuccessor(block.getLastInstruction(), kind)
1819
}

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/reachability/ReachableBlock.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ predicate isInfeasibleInstructionSuccessor(Instruction instr, EdgeKind kind) {
1313
)
1414
}
1515

16+
pragma[noinline]
1617
predicate isInfeasibleEdge(IRBlockBase block, EdgeKind kind) {
1718
isInfeasibleInstructionSuccessor(block.getLastInstruction(), kind)
1819
}

0 commit comments

Comments
 (0)