Skip to content

Commit

Permalink
Fix bad refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch committed Feb 4, 2023
1 parent cf0952b commit 8df13a7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ bool Lowering::IsSafeToContainMem(GenTree* parentNode, GenTree* childNode) const

//------------------------------------------------------------------------
// IsSafeToContainMem: Checks for conflicts between childNode and grandParentNode
// and returns 'true' iff memory operand childNode can be contained in ancestorNode
// and returns 'true' iff memory operand childNode can be contained in grandParentNode.
//
// Arguments:
// grandParentNode - any non-leaf node
Expand Down Expand Up @@ -257,7 +257,7 @@ bool Lowering::IsSafeToMarkRegOptional(GenTree* parentNode, GenTree* childNode)
}

// We expect this to have interference as otherwise we could have marked it contained.
return IsInvariantInRange(childNode, parentNode);
return false;
}

//------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/lowerarmarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ void Lowering::ContainBlockStoreAddress(GenTreeBlk* blkNode, unsigned size, GenT
}
#endif // !TARGET_ARM

if (!IsInvariantInRange(addr, addrParent, blkNode))
if (!IsInvariantInRange(addr, blkNode, addrParent))
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/lowerloongarch64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void Lowering::ContainBlockStoreAddress(GenTreeBlk* blkNode, unsigned size, GenT
return;
}

if (!IsInvariantInRange(addr, addrParent, blkNode))
if (!IsInvariantInRange(addr, blkNode, addrParent))
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/jit/lowerxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ void Lowering::ContainBlockStoreAddress(GenTreeBlk* blkNode, unsigned size, GenT
// Note that the parentNode is always the block node, even if we're dealing with the source address.
// The source address is not directly used by the block node but by an IND node and that IND node is
// always contained.
if (!IsInvariantInRange(addrMode, addrParent, blkNode))
if (!IsInvariantInRange(addrMode, blkNode, addrParent))
{
return;
}
Expand Down

0 comments on commit 8df13a7

Please sign in to comment.