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:
4921dbb
)
make cns_str indirect loads invariant (#40898)
author
Egor Bogatov
<egorbo@gmail.com>
Mon, 31 Aug 2020 20:47:11 +0000
(23:47 +0300)
committer
GitHub
<noreply@github.com>
Mon, 31 Aug 2020 20:47:11 +0000
(13:47 -0700)
src/coreclr/src/jit/gentree.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/jit/gentree.cpp
b/src/coreclr/src/jit/gentree.cpp
index
3c1c144
..
c21bc80
100644
(file)
--- a/
src/coreclr/src/jit/gentree.cpp
+++ b/
src/coreclr/src/jit/gentree.cpp
@@
-6076,7
+6076,7
@@
GenTree* Compiler::gtNewStringLiteralNode(InfoAccessType iat, void* pValue)
case IAT_PVALUE: // The value needs to be accessed via an indirection
// Create an indirection
- tree = gtNewIndOfIconHandleNode(TYP_REF, (size_t)pValue, GTF_ICON_STR_HDL,
fals
e);
+ tree = gtNewIndOfIconHandleNode(TYP_REF, (size_t)pValue, GTF_ICON_STR_HDL,
tru
e);
#ifdef DEBUG
tree->gtGetOp1()->AsIntCon()->gtTargetHandle = (size_t)pValue;
#endif