[PATCH] D25987: [X86] New pattern to generate PSUBUS from SELECT

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 05:31:20 PST 2017


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:28958
+    // umin instruction.
+    if (Subtarget.hasSSE41() && Other.getNode() &&
+        Other.getOpcode() == ISD::TRUNCATE &&
----------------
SSE2 has some min/max support - replace the hasSSE41 requirement with TLI.isOperationLegalOrCustom() ?


https://reviews.llvm.org/D25987





More information about the llvm-commits mailing list