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:
3dbb655
)
JIT: fix def tree for CSE locals going into SSA (dotnet/coreclr#27301)
author
Andy Ayers
<andya@microsoft.com>
Mon, 21 Oct 2019 21:49:51 +0000
(14:49 -0700)
committer
GitHub
<noreply@github.com>
Mon, 21 Oct 2019 21:49:51 +0000
(14:49 -0700)
When putting a new single-def CSE local into SSA, we need to set the def tree
to the LHS of the GT_ASG, not the GT_ASG.
Commit migrated from https://github.com/dotnet/coreclr/commit/
90e59bed1cf8c513d42fc7c660953e7d46057a4e
src/coreclr/src/jit/optcse.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/jit/optcse.cpp
b/src/coreclr/src/jit/optcse.cpp
index 55fc666d7bc8b55e1ef9cc511b264fe6b17c4290..432e85be668987b6dc33b49ffd6aa3908f236a8e 100644
(file)
--- a/
src/coreclr/src/jit/optcse.cpp
+++ b/
src/coreclr/src/jit/optcse.cpp
@@
-2381,7
+2381,7
@@
public:
ssaVarDsc->m_vnPair = val->gtVNPair;
ssaVarDsc->m_defLoc.m_blk = blk;
- ssaVarDsc->m_defLoc.m_tree = asg;
+ ssaVarDsc->m_defLoc.m_tree = asg
->AsOp()->gtOp1
;
}
/* Create a reference to the CSE temp */