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:
0adf9b5
)
JIT: Properly handle a switch opt case during early flow opts (#40434)
author
Andy Ayers
<andya@microsoft.com>
Thu, 6 Aug 2020 19:01:01 +0000
(12:01 -0700)
committer
GitHub
<noreply@github.com>
Thu, 6 Aug 2020 19:01:01 +0000
(12:01 -0700)
Don't try rethreading statement lists if we're doing and early flow opt.
Fixes #40195.
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
89ce176
..
242a4c5
100644
(file)
--- a/
src/coreclr/src/jit/flowgraph.cpp
+++ b/
src/coreclr/src/jit/flowgraph.cpp
@@
-14704,9
+14704,9
@@
bool Compiler::fgOptimizeSwitchBranches(BasicBlock* block)
LIR::ReadOnlyRange range(zeroConstNode, switchTree);
m_pLowering->LowerRange(block, range);
}
- else
+ else
if (fgStmtListThreaded)
{
- // Re-link the nodes for this statement.
+ gtSetStmtInfo(switchStmt);
fgSetStmtSeq(switchStmt);
}