Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16727 from CarolEidt/NoIndirByte
Browse files Browse the repository at this point in the history
Don't force byte regs for indir address
  • Loading branch information
CarolEidt authored Mar 5, 2018
2 parents 5763bb4 + 1765a4e commit aea9340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jit/lsraxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,9 @@ void LinearScan::BuildCheckByteable(GenTree* tree)
if (tree->OperIsSimple())
{
GenTree* op = tree->gtOp.gtOp1;
if (op != nullptr)
// We need byte registers on the operands of most simple operators that produce a byte result.
// However, indirections are simple operators but do not require their address in a byte register.
if ((op != nullptr) && !tree->OperIsIndir())
{
// No need to set src candidates on a contained child operand.
if (!op->isContained())
Expand Down

0 comments on commit aea9340

Please sign in to comment.