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
8 changes: 7 additions & 1 deletion src/coreclr/jit/valuenum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,13 @@ bool ValueNumStore::IsKnownNonNull(ValueNum vn)
return false;
}

assert((TypeOfVN(vn) == TYP_I_IMPL) || (TypeOfVN(vn) == TYP_REF) || (TypeOfVN(vn) == TYP_BYREF));
// Ignore corner cases like a SIMD value - SIMD could be a base address of an indirection
// (e.g. SVE GatherVector, a vector of addresses).
Comment thread
EgorBo marked this conversation as resolved.
var_types vnType = TypeOfVN(vn);
if ((vnType != TYP_I_IMPL) && (vnType != TYP_REF) && (vnType != TYP_BYREF))
{
return false;
}

target_ssize_t offset;
PeelOffsets(&vn, &offset);
Expand Down
Loading