summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2017-08-02 11:31:13 -0700
committerGitHub <noreply@github.com>2017-08-02 11:31:13 -0700
commitd68faa30b16fb66addc9aa8b53d571dfa9fdf7be (patch)
tree46ac04298a8bf2c05215b249573f64d600667a3c
parent21d7b38fc0a4e186c8cf05431b25b69605687653 (diff)
parent2b9327d489e328abfabf21ae86502f095cad91b1 (diff)
downloadcoreclr-d68faa30b16fb66addc9aa8b53d571dfa9fdf7be.tar.gz
coreclr-d68faa30b16fb66addc9aa8b53d571dfa9fdf7be.tar.bz2
coreclr-d68faa30b16fb66addc9aa8b53d571dfa9fdf7be.zip
Merge pull request #13155 from CarolEidt/UModTreeNodeInfo
Set Register Requirements for Mod/Div
-rw-r--r--src/jit/lsraxarch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/lsraxarch.cpp b/src/jit/lsraxarch.cpp
index 6613fc3ba3..e90be05573 100644
--- a/src/jit/lsraxarch.cpp
+++ b/src/jit/lsraxarch.cpp
@@ -2068,7 +2068,7 @@ void Lowering::TreeNodeInfoInitModDiv(GenTree* tree)
op1->gtLsraInfo.setSrcCandidates(l, RBM_RAX);
}
- if (op2->IsRegOptional())
+ if (!op2->isContained())
{
op2->gtLsraInfo.setSrcCandidates(l, l->allRegs(TYP_INT) & ~(RBM_RAX | RBM_RDX));
}