Skip to content

Commit 1385479

Browse files
authored
JIT: fix invariant analysis for cloning (#70126)
Fix some cases where the JIT was not sufficiently careful in verifying that operands in a loop were invariant. Closes #61040.
1 parent b44fd4a commit 1385479

10 files changed

+484
-102
lines changed

src/coreclr/jit/compiler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6312,7 +6312,7 @@ class Compiler
63126312

63136313
bool optIsLoopTestEvalIntoTemp(Statement* testStmt, Statement** newTestStmt);
63146314
unsigned optIsLoopIncrTree(GenTree* incr);
6315-
bool optCheckIterInLoopTest(unsigned loopInd, GenTree* test, BasicBlock* from, BasicBlock* to, unsigned iterVar);
6315+
bool optCheckIterInLoopTest(unsigned loopInd, GenTree* test, unsigned iterVar);
63166316
bool optComputeIterInfo(GenTree* incr, BasicBlock* from, BasicBlock* to, unsigned* pIterVar);
63176317
bool optPopulateInitInfo(unsigned loopInd, BasicBlock* initBlock, GenTree* init, unsigned iterVar);
63186318
bool optExtractInitTestIncr(
@@ -6406,7 +6406,7 @@ class Compiler
64066406

64076407
bool optIsVarAssgLoop(unsigned lnum, unsigned var);
64086408

6409-
int optIsSetAssgLoop(unsigned lnum, ALLVARSET_VALARG_TP vars, varRefKinds inds = VR_NONE);
6409+
bool optIsSetAssgLoop(unsigned lnum, ALLVARSET_VALARG_TP vars, varRefKinds inds = VR_NONE);
64106410

64116411
bool optNarrowTree(GenTree* tree, var_types srct, var_types dstt, ValueNumPair vnpNarrow, bool doit);
64126412

0 commit comments

Comments
 (0)