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

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 05:27:55 PST 2017


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:29378
+        Other.getOperand(0).getOpcode() == ISD::SUB && isUnsignedIntSetCC(CC)
+	&& Subtarget.hasSSE41()) {
+      //  x >= y ? x - y : 0, where y is wider then x. We can truncate y
----------------
clang-format


https://reviews.llvm.org/D25987





More information about the llvm-commits mailing list