Skip to content

Commit 620035a

Browse files
committed
undo change to lea formation in favor of dotnet#1593
1 parent eee522a commit 620035a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/coreclr/src/jit/codegencommon.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,12 +1375,6 @@ bool CodeGen::genCreateAddrMode(GenTree* addr,
13751375

13761376
if (op2->IsIntCnsFitsInI32() && (op2->gtType != TYP_REF) && FitsIn<INT32>(cns + op2->AsIntConCommon()->IconValue()))
13771377
{
1378-
// Don't build address modes out of non-foldable constants
1379-
if (!op2->AsIntConCommon()->ImmedValCanBeFolded(compiler, addr->OperGet()))
1380-
{
1381-
return false;
1382-
}
1383-
13841378
/* We're adding a constant */
13851379

13861380
cns += op2->AsIntConCommon()->IconValue();

0 commit comments

Comments
 (0)