Repository: dotnet/runtime
File: src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.Impl.cs (C#)

Code before:
                    // tmp2[0] = io_km
                    // tmp2[1] = in_jm
                    // tmp2[2] = ip_lm
                    // tmp2[3] = jo_kn
                    Vector128<float> tmp2 = z_iiij * w_onpo - z_kjlk * w_mmmn;

                    // tmp3[0] = kp_lo
                    // tmp3[1] = kp_lo
                    // tmp3[2] = jp_ln
                    // tmp3[3] = jo_kn
                    Vector128<float> tmp3 = Sse.Shuffle(tmp1, tmp1, 0b10010000);

                    // tmp4[0] = jp_ln
                    // tmp4[1] = ip_lm
                    // tmp4[2] = ip_lm
                    // tmp4[3] = io_km
                    Vector128<float> tmp4 = Sse.Shuffle(tmp1, tmp2, 0b00101101);

                    // tmp5[0] = jo_kn
                    // tmp5[1] = io_km
                    // tmp5[2] = in_jm
                    // tmp5[3] = in_jm
                    Vector128<float> tmp5 = Sse.Shuffle(tmp2, tmp2, 0b01010011);

                    Vector128<float> tmp6 = x * (y_feee * tmp3 - y_ggff * tmp4 + y_hhhg * tmp5);
                    Vector128<float> tmp7 = tmp6 - Sse.Shuffle(tmp6, tmp6, 0b00110001);
                    return tmp7[0] + tmp7[2];
                }

                float a = X.X, b = X.Y, c = X.Z, d = X.W;
                float e = Y.X, f = Y.Y, g = Y.Z, h = Y.W;
                float i = Z.X, j = Z.Y, k = Z.Z, l = Z.W;
                float m = W.X, n = W.Y, o = W.Z, p = W.W;

                float kp_lo = k * p - l * o;
                float jp_ln = j * p - l * n;
                float jo_kn = j * o - k * n;
                float ip_lm = i * p - l * m;
                float io_km = i * o - k * m;
                float in_jm = i * n - j * m;

                return a * (f * kp_lo - g * jp_ln + h * jo_kn) -
                       b * (e * kp_lo - g * ip_lm + h * io_km) +
                       c * (e * jp_ln - f * ip_lm + h * in_jm) -
                       d * (e * jo_kn - f * io_km + g * in_jm);
            }

            [MethodImpl(MethodImplOptions.AggressiveInlining)]
            public override readonly int GetHashCode() => HashCode.Combine(X, Y, Z, W);

            readonly bool IEquatable<Impl>.Equals(Impl other) => Equals(in other);

Review comment (suggestion):
```suggestion
                    Vector128<float> tmp7 = tmp6 - Vector128.Shuffle(tmp6, Vector128.Create(1, 0, 3, 0));
```

Code after:
                    // tmp2[0] = io_km
                    // tmp2[1] = in_jm
                    // tmp2[2] = ip_lm
                    // tmp2[3] = jo_kn
                    Vector128<float> tmp2 = z_iiij * w_onpo - z_kjlk * w_mmmn;

                    // tmp3[0] = kp_lo
                    // tmp3[1] = kp_lo
                    // tmp3[2] = jp_ln
                    // tmp3[3] = jo_kn
                    Vector128<float> tmp3 = Vector128.Shuffle(tmp1, Vector128.Create(0, 0, 1, 2));

                    // tmp4[0] = jp_ln
                    // tmp4[1] = ip_lm
                    // tmp4[2] = ip_lm
                    // tmp4[3] = io_km
                    Vector128<float> tmp4;
                    if (Sse.IsSupported)
                    {
                        tmp4 = Sse.Shuffle(tmp1, tmp2, 0b00_10_11_01);
                    }
                    else
                    {
                        tmp4 = Vector128.ConditionalSelect(
                            Vector128.Create(-1, -1, 0, 0).AsSingle(),
                            Vector128.Shuffle(tmp1, Vector128.Create(1, 3, 1, 3)),
                            Vector128.Shuffle(tmp2, Vector128.Create(2, 0, 2, 0))
                        );
                    }

                    // tmp5[0] = jo_kn
                    // tmp5[1] = io_km
                    // tmp5[2] = in_jm
                    // tmp5[3] = in_jm
                    Vector128<float> tmp5 = Vector128.Shuffle(tmp2, Vector128.Create(3, 0, 1, 1));

                    Vector128<float> tmp6 = x * (y_feee * tmp3 - y_ggff * tmp4 + y_hhhg * tmp5);
                    Vector128<float> tmp7 = tmp6 - Vector128.Shuffle(tmp6, Vector128.Create(1, 0, 3, 0));
                    return tmp7[0] + tmp7[2];
                }

                float a = X.X, b = X.Y, c = X.Z, d = X.W;
                float e = Y.X, f = Y.Y, g = Y.Z, h = Y.W;
                float i = Z.X, j = Z.Y, k = Z.Z, l = Z.W;
                float m = W.X, n = W.Y, o = W.Z, p = W.W;

                float kp_lo = k * p - l * o;
                float jp_ln = j * p - l * n;
                float jo_kn = j * o - k * n;
                float ip_lm = i * p - l * m;
                float io_km = i * o - k * m;