[PATCH] D21144: [X86]: Quit promoting 8 and 16 bit compares to 32 bit.

Kevin B. Smith via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 15:48:19 PDT 2016


kbsmith1 added inline comments.

================
Comment at: test/CodeGen/X86/memcmp.ll:44
@@ -44,4 +43,3 @@
 ; CHECK-LABEL: memcmp2a:
-; CHECK: movzwl
-; CHECK-NEXT: cmpl    $28527,
+; CHECK: cmpw $28527, (%
 }
----------------
eli.friedman wrote:
> 16-bit immediate operands are bad for performance on modern x86.
I'm looking into changing the code so that 16 bit compares which have a constant operand will continue to get promoted, and how that affects the performance numbers.


http://reviews.llvm.org/D21144





More information about the llvm-commits mailing list