summaryrefslogtreecommitdiff
path: root/src/jit/bitsetasuint64.h
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2017-04-27 18:06:34 -0700
committerGitHub <noreply@github.com>2017-04-27 18:06:34 -0700
commit70014f8863209853a29d010219e36b7eae2d4cd8 (patch)
tree3bfefec5695fefcefa512d6715cb4dd0411c6db5 /src/jit/bitsetasuint64.h
parente60e06f9b65d3fafdd6fd78900315d765ef3c91e (diff)
downloadcoreclr-70014f8863209853a29d010219e36b7eae2d4cd8.tar.gz
coreclr-70014f8863209853a29d010219e36b7eae2d4cd8.tar.bz2
coreclr-70014f8863209853a29d010219e36b7eae2d4cd8.zip
Fix lsra memory consumption (#11233)
* Rename ClearD to OldStyleClearD * create fast ClearD function. The new ClearD reuses existing buffer and assumes that epoch wasn't changed. * Reuse existing buffer for the predSet in lsra. * Use fast ClearD in LSRA. * Use fast ClearD in liveness * Fix the comment * delete the test from issues
Diffstat (limited to 'src/jit/bitsetasuint64.h')
-rw-r--r--src/jit/bitsetasuint64.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jit/bitsetasuint64.h b/src/jit/bitsetasuint64.h
index 243e9e33b4..aec4d05c35 100644
--- a/src/jit/bitsetasuint64.h
+++ b/src/jit/bitsetasuint64.h
@@ -44,6 +44,11 @@ public:
lhs = rhs;
}
+ static void OldStyleClearD(Env env, UINT64& bs)
+ {
+ bs = 0;
+ }
+
static void ClearD(Env env, UINT64& bs)
{
bs = 0;