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:
ba442a5
)
Set `BBF_RUN_RARELY` for a scratch first BB if called count is 0.
author
Pat Gavlin
<pagavlin@microsoft.com>
Wed, 26 Jul 2017 00:39:21 +0000
(17:39 -0700)
committer
Pat Gavlin
<pagavlin@microsoft.com>
Wed, 26 Jul 2017 00:39:21 +0000
(17:39 -0700)
Just what it says on the tin.
Fixes VSO 469624.
src/jit/flowgraph.cpp
patch
|
blob
|
history
diff --git
a/src/jit/flowgraph.cpp
b/src/jit/flowgraph.cpp
index
5dab6bb
..
0c8a28e
100644
(file)
--- a/
src/jit/flowgraph.cpp
+++ b/
src/jit/flowgraph.cpp
@@
-12836,6
+12836,10
@@
void Compiler::fgComputeEdgeWeights()
if (fgFirstBBisScratch())
{
fgFirstBB->setBBProfileWeight(fgCalledCount);
+ if (fgFirstBB->bbWeight == 0)
+ {
+ fgFirstBB->bbFlags |= BBF_RUN_RARELY;
+ }
}
#if DEBUG