Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion committed May 1, 2023
1 parent b82c87f commit 798bef9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/fgopt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3445,7 +3445,7 @@ bool Compiler::fgBlockEndFavorsTailDuplication(BasicBlock* block, unsigned lclNu
while (count < limit)
{
count++;
unsigned storeLclNum;
unsigned storeLclNum;
GenTree* const tree = stmt->GetRootNode();
if (tree->OperIsStoreLcl(&storeLclNum) && (storeLclNum == lclNum) && !tree->OperIsBlkOp())
{
Expand Down Expand Up @@ -3606,7 +3606,7 @@ bool Compiler::fgBlockIsGoodTailDuplicationCandidate(BasicBlock* target, unsigne
// Otherwise check the first stmt.
// Verify the branch is just a simple local compare.
//
unsigned storeLclNum;
unsigned storeLclNum;
GenTree* const firstTree = firstStmt->GetRootNode();
if (!firstTree->OperIsStoreLclVar(&storeLclNum))
{
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5240,7 +5240,7 @@ unsigned Compiler::gtSetEvalOrder(GenTree* tree)
break;

case GT_LCL_FLD:
level = 1;
level = 1;
gtGetLclFldNodeCost(tree->AsLclFld(), &costEx, &costSz);
break;

Expand Down Expand Up @@ -5597,8 +5597,8 @@ unsigned Compiler::gtSetEvalOrder(GenTree* tree)
costSz += 3;
}
#endif
level = gtSetEvalOrder(op1);
unsigned lvl2 = gtSetEvalOrder(op2);
level = gtSetEvalOrder(op1);
unsigned lvl2 = gtSetEvalOrder(op2);

switch (oper)
{
Expand Down
3 changes: 1 addition & 2 deletions src/coreclr/jit/helperexpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,7 @@ bool Compiler::fgExpandThreadLocalAccessForCall(BasicBlock** pBlock, Statement*
// Cache the threadStaticBlock value
unsigned threadStaticBlockBaseLclNum = lvaGrabTemp(true DEBUGARG("ThreadStaticBlockBase access"));
lvaTable[threadStaticBlockBaseLclNum].lvType = TYP_I_IMPL;
GenTree* threadStaticBlockBaseDef =
gtNewStoreLclVarNode(threadStaticBlockBaseLclNum, typeThreadStaticBlockValue);
GenTree* threadStaticBlockBaseDef = gtNewStoreLclVarNode(threadStaticBlockBaseLclNum, typeThreadStaticBlockValue);
GenTree* threadStaticBlockBaseLclValueUse = gtNewLclVarNode(threadStaticBlockBaseLclNum);

// Create tree for "if (threadStaticBlockValue != nullptr)"
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/morphblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ GenTree* MorphCopyBlockHelper::CopyFieldByField()

if (addrSpillStore != nullptr)
{
result = m_comp->gtNewOperNode(GT_COMMA, TYP_VOID, addrSpillStore, storeOneFld);
result = m_comp->gtNewOperNode(GT_COMMA, TYP_VOID, addrSpillStore, storeOneFld);
addrSpillStore = nullptr;
}
else if (result != nullptr)
Expand Down

0 comments on commit 798bef9

Please sign in to comment.