Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
Minor clean ups
  • Loading branch information
jakobbotsch committed Sep 6, 2022
commit 9867d1d1fb86f29ef2d00ab20e83f6f73526bd06
1 change: 0 additions & 1 deletion src/coreclr/jit/indirectcalltransformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ class IndirectCallTransformer
if (thisTree->IsLocal())
{
thisTree = compiler->gtCloneExpr(thisTree);
LclVarDsc* dsc = compiler->lvaGetDesc(thisTree->AsLclVarCommon());
}
else
{
Expand Down
4 changes: 1 addition & 3 deletions src/coreclr/jit/loopcloning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2821,7 +2821,7 @@ Compiler::fgWalkResult Compiler::optCanOptimizeByLoopCloning(GenTree* tree, Loop
GenTree* relopOp1 = relop->AsOp()->gtGetOp1();
GenTree* relopOp2 = relop->AsOp()->gtGetOp2();

// One side or the other must be an indir and the other must be a loop
// One side or the other must be an indir and the other must be loop
// invariant. Currently, we'll just look for a constant or indir of a
// constant. Start out by normalizing it to the right.
//
Expand Down Expand Up @@ -2882,8 +2882,6 @@ Compiler::fgWalkResult Compiler::optCanOptimizeByLoopCloning(GenTree* tree, Loop
}
else if (optIsHandleOrIndirOfHandle(relopOp2, GTF_ICON_FTN_ADDR))
{
// The indir addr must be loop invariant TYP_REF local
//
GenTree* indirAddr = relopOp1->AsIndir()->Addr();

// ▌ JTRUE void
Expand Down