]> granicus.if.org Git - llvm/commitdiff
[X86] Remove unneeded isel pattern for v4f32->v4i32 fp_to_sint and conversion to...
authorCraig Topper <craig.topper@intel.com>
Thu, 15 Aug 2019 05:52:02 +0000 (05:52 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 15 Aug 2019 05:52:02 +0000 (05:52 +0000)
fp_to_sint is turned into X86cvttp2si during isel preprocessing.
The other redundant isel patterns were removed previously, but I
missed this one because its in the MMX td file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368968 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrMMX.td

index 57835b1a256aa86b015c6abd6a4b4725fa58c80f..93e1cbdc8026086741f9739f45c901639edd6bdc 100644 (file)
@@ -601,9 +601,6 @@ def : Pat<(x86mmx (MMX_X86movdq2q
 def : Pat<(x86mmx (MMX_X86movdq2q
                    (bc_v2i64 (v4i32 (X86cvttp2si (v4f32 VR128:$src)))))),
           (MMX_CVTTPS2PIirr VR128:$src)>;
-def : Pat<(x86mmx (MMX_X86movdq2q
-                   (bc_v2i64 (v4i32 (fp_to_sint (v4f32 VR128:$src)))))),
-          (MMX_CVTTPS2PIirr VR128:$src)>;
 def : Pat<(x86mmx (MMX_X86movdq2q
                    (bc_v2i64 (v4i32 (X86cvtp2Int (v2f64 VR128:$src)))))),
           (MMX_CVTPD2PIirr VR128:$src)>;