Skip to content

Commit 24b0469

Browse files
committed
cache two more predicates in the SSA stage
1 parent e5b13d9 commit 24b0469

File tree

1 file changed

+2
-0
lines changed
  • javascript/ql/src/semmle/javascript

1 file changed

+2
-0
lines changed

javascript/ql/src/semmle/javascript/SSA.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ abstract class SsaPseudoDefinition extends SsaImplicitDefinition {
627627
/**
628628
* Gets an input of this pseudo-definition.
629629
*/
630+
cached
630631
abstract SsaVariable getAnInput();
631632

632633
override VarDef getAContributingVarDef() {
@@ -649,6 +650,7 @@ class SsaPhiNode extends SsaPseudoDefinition, TPhi {
649650
/**
650651
* Gets the input to this phi node coming from the given predecessor block.
651652
*/
653+
cached
652654
SsaVariable getInputFromBlock(BasicBlock bb) {
653655
bb = getBasicBlock().getAPredecessor() and
654656
result = getDefReachingEndOf(bb, getSourceVariable())

0 commit comments

Comments
 (0)