diff options
author | Joseph Tremoulet <jotrem@microsoft.com> | 2017-02-13 14:09:08 -0500 |
---|---|---|
committer | Joseph Tremoulet <jotrem@microsoft.com> | 2017-02-13 14:09:08 -0500 |
commit | 4f2d083b67873a9281692d69c8088cc52f38b690 (patch) | |
tree | 29d50e881c24cf1e561929f6bf4676b3c0e65c68 /src/jit/utils.cpp | |
parent | 6185a8801d3d4402b3afb728856aa62b86dadb4a (diff) | |
download | coreclr-4f2d083b67873a9281692d69c8088cc52f38b690.tar.gz coreclr-4f2d083b67873a9281692d69c8088cc52f38b690.tar.bz2 coreclr-4f2d083b67873a9281692d69c8088cc52f38b690.zip |
Value number TypeHandleToRuntimeType helper
This is a pure helper w/o side-effects, so add it to the lists of
tractable helpers in value-numbering; this allows redundant calls to be
CSEd, and fixes #9552 so we can again optimize away type checks on type
parameters in generic code (a not-infrequent pattern).
Diffstat (limited to 'src/jit/utils.cpp')
-rw-r--r-- | src/jit/utils.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jit/utils.cpp b/src/jit/utils.cpp index 3a45039aa7..df5bd2bea6 100644 --- a/src/jit/utils.cpp +++ b/src/jit/utils.cpp @@ -1358,6 +1358,7 @@ void HelperCallProperties::init() case CORINFO_HELP_ISINSTANCEOFCLASS: case CORINFO_HELP_ISINSTANCEOFANY: case CORINFO_HELP_READYTORUN_ISINSTANCEOF: + case CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE: isPure = true; noThrow = true; // These return null for a failing cast |