Set Register Requirements for Mod/Div
authorCarol Eidt <carol.eidt@microsoft.com>
Wed, 2 Aug 2017 01:19:36 +0000 (18:19 -0700)
committerCarol Eidt <carol.eidt@microsoft.com>
Wed, 2 Aug 2017 01:19:36 +0000 (18:19 -0700)
src/jit/lsraxarch.cpp

index 6613fc3..e90be05 100644 (file)
@@ -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));
     }