summaryrefslogtreecommitdiff
path: root/src/jit/valuenum.h
diff options
context:
space:
mode:
authorEugene Rozenfeld <erozen@microsoft.com>2016-03-01 22:17:00 -0800
committerEugene Rozenfeld <erozen@microsoft.com>2016-03-04 18:23:15 -0800
commit669bd80064f26cd0b4ded9404899e23f512a7e33 (patch)
tree585bb35bc949aafdec89b627995e2ebcfeaae321 /src/jit/valuenum.h
parent526d355acc407ab59348ae97d5ade4b48ddad307 (diff)
downloadcoreclr-669bd80064f26cd0b4ded9404899e23f512a7e33.tar.gz
coreclr-669bd80064f26cd0b4ded9404899e23f512a7e33.tar.bz2
coreclr-669bd80064f26cd0b4ded9404899e23f512a7e33.zip
Improvements for ReadyToRun helpers in JIT value numbering.
The following ReadyToRun helpers are now treated similarly to their normal counterparts in value numbering: CORINFO_HELP_READYTORUN_NEW CORINFO_HELP_READYTORUN_NEWARR_1 CORINFO_HELP_READYTORUN_ISINSTANCEOF CORINFO_HELP_READYTORUN_CHKCAST CORINFO_HELP_READYTORUN_STATIC_BASE In particular, this allows CSE-ing calls to the last 3 of the above helpers when possible. #3281 is an issue for CORINFO_HELP_READYTORUN_STATIC_BASE. Compiler::fgValueNumberHelperCallFunc is refactored to reduce code duplication. Closes #3281.
Diffstat (limited to 'src/jit/valuenum.h')
-rw-r--r--src/jit/valuenum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/valuenum.h b/src/jit/valuenum.h
index 220af79257..ab1bef4347 100644
--- a/src/jit/valuenum.h
+++ b/src/jit/valuenum.h
@@ -584,7 +584,7 @@ public:
};
// Check if "vn" is "new [] (type handle, size)"
- bool IsVNNewArr(ValueNum vn);
+ bool IsVNNewArr(ValueNum vn, VNFuncApp* funcApp);
// Check if "vn" IsVNNewArr and return <= 0 if arr size cannot be determined, else array size.
int GetNewArrSize(ValueNum vn);