projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c2ff8a
)
Stop maintaining costs in fgSimpleLowering. (dotnet/coreclr#6872)
author
Pat Gavlin
<pgavlin@gmail.com>
Tue, 23 Aug 2016 22:41:09 +0000
(15:41 -0700)
committer
GitHub
<noreply@github.com>
Tue, 23 Aug 2016 22:41:09 +0000
(15:41 -0700)
This was causing a few asserts on x86.
Commit migrated from https://github.com/dotnet/coreclr/commit/
9b46970f46ca055932d8a2815965fff702c37557
src/coreclr/src/jit/flowgraph.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/jit/flowgraph.cpp
b/src/coreclr/src/jit/flowgraph.cpp
index
66b3efb
..
a1d4aaf
100644
(file)
--- a/
src/coreclr/src/jit/flowgraph.cpp
+++ b/
src/coreclr/src/jit/flowgraph.cpp
@@
-8981,12
+8981,16
@@
void Compiler::fgSimpleLowering()
{
con = gtNewIconNode(arrLen->ArrLenOffset(), TYP_I_IMPL);
con->gtRsvdRegs = 0;
- con->gtCopyFPlvl(arr);
+
add = gtNewOperNode(GT_ADD, TYP_REF, arr, con);
add->gtRsvdRegs = arr->gtRsvdRegs;
+
+#ifdef LEGACY_BACKEND
+ con->gtCopyFPlvl(arr);
+
add->gtCopyFPlvl(arr);
add->CopyCosts(arr);
-#ifdef LEGACY_BACKEND
+
arr->gtNext = con;
con->gtPrev = arr;