[llvm] ddd7fc3 - [X86] Add missing isel pattern for VCVTTPD2UDQSZ128rm. Remove duplicate pattern. (#162700)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 14:38:45 PDT 2025


Author: Craig Topper
Date: 2025-10-09T14:38:41-07:00
New Revision: ddd7fc3b46ee9d3632494ae878ab189b9adac8f9

URL: https://github.com/llvm/llvm-project/commit/ddd7fc3b46ee9d3632494ae878ab189b9adac8f9
DIFF: https://github.com/llvm/llvm-project/commit/ddd7fc3b46ee9d3632494ae878ab189b9adac8f9.diff

LOG: [X86] Add missing isel pattern for VCVTTPD2UDQSZ128rm. Remove duplicate pattern. (#162700)

Addresses my comment here
https://github.com/llvm/llvm-project/pull/162036#issuecomment-3386628215

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86InstrAVX10.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86InstrAVX10.td b/llvm/lib/Target/X86/X86InstrAVX10.td
index 764ff998bb562..4b3ddbdedbdee 100644
--- a/llvm/lib/Target/X86/X86InstrAVX10.td
+++ b/llvm/lib/Target/X86/X86InstrAVX10.td
@@ -592,10 +592,10 @@ def : Pat<(X86mcvttp2sis (v2f64 (X86VBroadcastld64 addr:$src)),
           (VCVTTPD2DQSZ128rmbkz VK2WM:$mask, addr:$src)>;
 
 // Patterns VCVTTPD2UDQSZ128
-def : Pat<(v4i32 (X86cvttp2uis (v2f64 (X86VBroadcastld64 addr:$src)))),
-          (VCVTTPD2UDQSZ128rmb addr:$src)>;
 def : Pat<(v4i32 (X86cvttp2uis (v2f64 VR128X:$src))),
           (VCVTTPD2UDQSZ128rr VR128X:$src)>;
+def : Pat<(v4i32 (X86cvttp2uis (loadv2f64 addr:$src))),
+          (VCVTTPD2UDQSZ128rm addr:$src)>;
 def : Pat<(v4i32 (X86cvttp2uis (v2f64 (X86VBroadcastld64 addr:$src)))),
           (VCVTTPD2UDQSZ128rmb addr:$src)>;
 def : Pat<(X86mcvttp2uis (v2f64 VR128X:$src), (v4i32 VR128X:$src0),


        


More information about the llvm-commits mailing list