Skip to content

Commit

Permalink
Create LEA of comples addr expr.
Browse files Browse the repository at this point in the history
Gives a few improvements when addr has an index.
  • Loading branch information
Sergey Andreenko committed Jun 25, 2020
1 parent 6f8575e commit d8821cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coreclr/src/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6390,4 +6390,10 @@ void Lowering::LowerIndir(GenTreeIndir* ind)
}
}
}
else
{
// if `ADDR` node under `IND(struct(ADDR))` under `STORE_OBJ`
// is a complex one it could benefit from a not contained `LEA`.
TryCreateAddrMode(ind->Addr(), false);

This comment has been minimized.

Copy link
@erozenfeld

erozenfeld Jun 27, 2020

Member

Please use a named constant instead of false here.

}
}

0 comments on commit d8821cc

Please sign in to comment.