This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2671,7 +2671,10 @@ bool Lowering::IsContainableHWIntrinsicOp(GenTreeHWIntrinsic* containingNode, Ge | |
case NI_AVX2_BroadcastScalarToVector128: | ||
case NI_AVX2_BroadcastScalarToVector256: | ||
{ | ||
return (node->TypeGet() != TYP_SIMD16); | ||
// The memory form of this already takes a pointer, and cannot be further contained. | ||
// The containable form is the one that takes a SIMD value, that may be in memory. | ||
supportsGeneralLoads = (node->TypeGet() == TYP_SIMD16); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
CarolEidt
Author
|
||
break; | ||
} | ||
|
||
case NI_SSE_ConvertScalarToVector128Single: | ||
|
Mostly just talking myself through this.
This is correct and support things like stack spills or field loads since we have 16-bytes and only read the lower element.