projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cfbd33
)
Don't generate copy assertions for normalize on load variables
author
Mike Danes
<onemihaid@hotmail.com>
Sun, 25 Nov 2018 09:22:08 +0000
(11:22 +0200)
committer
Mike Danes
<onemihaid@hotmail.com>
Sun, 25 Nov 2018 09:22:08 +0000
(11:22 +0200)
src/jit/assertionprop.cpp
patch
|
blob
|
history
diff --git
a/src/jit/assertionprop.cpp
b/src/jit/assertionprop.cpp
index
88e6b00
..
dffc5b9
100644
(file)
--- a/
src/jit/assertionprop.cpp
+++ b/
src/jit/assertionprop.cpp
@@
-1182,6
+1182,13
@@
AssertionIndex Compiler::optCreateAssertion(GenTree* op1,
goto DONE_ASSERTION; // Don't make an assertion
}
+ // If we're making a copy of a "normalize on load" lclvar then the destination
+ // has to be "normalize on load" as well, otherwise we risk skipping normalization.
+ if (lclVar2->lvNormalizeOnLoad() && !lclVar->lvNormalizeOnLoad())
+ {
+ goto DONE_ASSERTION; // Don't make an assertion
+ }
+
// If the local variable has its address exposed then bail
if (lclVar2->lvAddrExposed)
{