cache two more predicates in the SSA stage

This commit is contained in:
Erik Krogh Kristensen
2021-03-11 16:09:00 +01:00
parent e5b13d9db4
commit 24b0469d74

View File

@@ -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())