Skip to content

Commit a995aae

Browse files
committed
addressing review comments
1 parent f56f612 commit a995aae

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/libraries/System.Private.CoreLib/src/System/Text/Ascii.Equality.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -536,17 +536,6 @@ public static Vector256<ushort> Load256(ref byte ptr)
536536
[MethodImpl(MethodImplOptions.AggressiveInlining)]
537537
public static Vector512<ushort> Load512(ref byte ptr)
538538
{
539-
// This is done here for performance gain.
540-
// A similar implementation would be as below:
541-
//
542-
// (Vector256<ushort> lower, Vector256<ushort> upper) = Vector256.Widen(Vector256.LoadUnsafe(ref ptr));
543-
// return Vector512.Create(lower, upper);
544-
//
545-
// This is similar to what is done for Load256 here. But
546-
// for Vector512, this implementation is low performance
547-
// since a load and widen on Vector256 followed by a
548-
// create on Vector512 is leading to a performance lower
549-
// than that of similar implementationfor Vector256.
550539
(Vector512<ushort> lower, Vector512<ushort> _) = Vector512.Widen(Vector256.LoadUnsafe(ref ptr).ToVector512());
551540
return lower;
552541
}

0 commit comments

Comments
 (0)