Skip to content

Commit 7a532a7

Browse files
Remove call to morph on hoisted trees (#86450)
It is unnecessary (this causes no diffs). And theoretically if it did cause diffs, the morphed tree would then not match the tree being hoisted, meaning CSE wouldn't "find" it and consider it a CSE.
1 parent 0660776 commit 7a532a7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/coreclr/jit/optimizer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6511,11 +6511,6 @@ void Compiler::optPerformHoistExpr(GenTree* origExpr, BasicBlock* exprBb, unsign
65116511

65126512
BasicBlock* preHead = optLoopTable[lnum].lpHead;
65136513

6514-
// fgMorphTree requires that compCurBB be the block that contains
6515-
// (or in this case, will contain) the expression.
6516-
compCurBB = preHead;
6517-
hoist = fgMorphTree(hoist);
6518-
65196514
// Scan the tree for any new SSA uses.
65206515
//
65216516
optRecordSsaUses(hoist, preHead);

0 commit comments

Comments
 (0)