Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3118,6 +3118,9 @@ GenTree* Compiler::fgMorphIndexAddr(GenTreeIndexAddr* indexAddr)
{
groupArrayRefWithIndex = false;
}
#elif defined(TARGET_WASM)
// Keep the constant offset outermost so it can fold into the memory instruction's memarg.
groupArrayRefWithIndex = varTypeIsGC(arrRef) && !varTypeIsStruct(elemTyp);
#endif

// Note the array reference may now be TYP_I_IMPL, TYP_BYREF, or TYP_REF
Expand Down
Loading