Updating BuildDelayFreeUses to also consider contained HWIntrinsic nodes.
authorTanner Gooding <tagoo@outlook.com>
Thu, 24 May 2018 21:21:12 +0000 (14:21 -0700)
committerTanner Gooding <tagoo@outlook.com>
Thu, 24 May 2018 23:24:52 +0000 (16:24 -0700)
src/jit/lsrabuild.cpp

index ba42745..ffacd7a 100644 (file)
@@ -2645,7 +2645,13 @@ int LinearScan::BuildDelayFreeUses(GenTree* node, regMaskTP candidates)
         setDelayFree(use);
         return 1;
     }
-    else if (!node->OperIsIndir())
+    if (node->OperIsHWIntrinsic())
+    {
+        use = BuildUse(node->gtGetOp1(), candidates);
+        setDelayFree(use);
+        return 1;
+    }
+    if (!node->OperIsIndir())
     {
         return 0;
     }