summaryrefslogtreecommitdiff
path: root/src/jit/lsrabuild.cpp
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-05-24 14:21:12 -0700
committerTanner Gooding <tagoo@outlook.com>2018-05-24 16:24:52 -0700
commit3b32ecf311b4c4d16d770501d5257a2e2f74e656 (patch)
tree8f2940ca039d17eaa4c074d0c091eb1052eed3cd /src/jit/lsrabuild.cpp
parenta9a7e78d290809692f23f129cd373e5f9a71a294 (diff)
downloadcoreclr-3b32ecf311b4c4d16d770501d5257a2e2f74e656.tar.gz
coreclr-3b32ecf311b4c4d16d770501d5257a2e2f74e656.tar.bz2
coreclr-3b32ecf311b4c4d16d770501d5257a2e2f74e656.zip
Updating BuildDelayFreeUses to also consider contained HWIntrinsic nodes.
Diffstat (limited to 'src/jit/lsrabuild.cpp')
-rw-r--r--src/jit/lsrabuild.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/jit/lsrabuild.cpp b/src/jit/lsrabuild.cpp
index ba427454df..ffacd7a5df 100644
--- a/src/jit/lsrabuild.cpp
+++ b/src/jit/lsrabuild.cpp
@@ -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;
}