diff options
Diffstat (limited to 'src/jit/gentree.cpp')
-rw-r--r-- | src/jit/gentree.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp index 54e294847b..d5b4cba90b 100644 --- a/src/jit/gentree.cpp +++ b/src/jit/gentree.cpp @@ -13317,13 +13317,22 @@ GenTree::IsLclVarUpdateTree(GenTree** pOtherTree, genTreeOps *pOper) // until after the LSRA phase has allocated physical registers to the treenodes. bool GenTree::isContained() const { + if (isContainedSpillTemp()) + { + return true; + } + if (gtHasReg()) + { return false; + } // these actually produce a register (the flags reg, we just don't model it) // and are a separate instruction from the branch that consumes the result if (OperKind() & GTK_RELOP) + { return false; + } // TODO-Cleanup : this is not clean, would be nice to have some way of marking this. switch (OperGet()) |