mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
cache two more predicates in the SSA stage
This commit is contained in:
@@ -627,6 +627,7 @@ abstract class SsaPseudoDefinition extends SsaImplicitDefinition {
|
||||
/**
|
||||
* Gets an input of this pseudo-definition.
|
||||
*/
|
||||
cached
|
||||
abstract SsaVariable getAnInput();
|
||||
|
||||
override VarDef getAContributingVarDef() {
|
||||
@@ -649,6 +650,7 @@ class SsaPhiNode extends SsaPseudoDefinition, TPhi {
|
||||
/**
|
||||
* Gets the input to this phi node coming from the given predecessor block.
|
||||
*/
|
||||
cached
|
||||
SsaVariable getInputFromBlock(BasicBlock bb) {
|
||||
bb = getBasicBlock().getAPredecessor() and
|
||||
result = getDefReachingEndOf(bb, getSourceVariable())
|
||||
|
||||
Reference in New Issue
Block a user