[PATCH] D58412: [X86] Remove FeatureSlowIncDec from Sandy Bridge and later Intel Core CPUs

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 19 21:41:28 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL354436: [X86] Remove FeatureSlowIncDec from Sandy Bridge and later Intel Core CPUs (authored by ctopper, committed by ).
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D58412?vs=187451&id=187518#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58412/new/

https://reviews.llvm.org/D58412

Files:
  llvm/trunk/lib/Target/X86/X86.td
  llvm/trunk/test/CodeGen/X86/mul-constant-result.ll
  llvm/trunk/test/CodeGen/X86/rdrand.ll


Index: llvm/trunk/lib/Target/X86/X86.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86.td
+++ llvm/trunk/lib/Target/X86/X86.td
@@ -733,7 +733,6 @@
   FeatureSlow3OpsLEA,
   FeatureFastScalarFSQRT,
   FeatureFastSHLDRotate,
-  FeatureSlowIncDec,
   FeatureMergeToThreeWayBranch,
   FeatureMacroFusion
 ]>;
Index: llvm/trunk/test/CodeGen/X86/mul-constant-result.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/mul-constant-result.ll
+++ llvm/trunk/test/CodeGen/X86/mul-constant-result.ll
@@ -254,7 +254,7 @@
 ; X64-HSW-NEXT:    cmovgl %ecx, %eax
 ; X64-HSW-NEXT:    testl %esi, %esi
 ; X64-HSW-NEXT:    cmovel %ecx, %eax
-; X64-HSW-NEXT:    addl $-1, %edi
+; X64-HSW-NEXT:    decl %edi
 ; X64-HSW-NEXT:    cmpl $31, %edi
 ; X64-HSW-NEXT:    ja .LBB0_36
 ; X64-HSW-NEXT:  # %bb.1:
Index: llvm/trunk/test/CodeGen/X86/rdrand.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/rdrand.ll
+++ llvm/trunk/test/CodeGen/X86/rdrand.ll
@@ -94,7 +94,7 @@
 ; X86-NEXT:    # =>This Inner Loop Header: Depth=1
 ; X86-NEXT:    rdrandl %esi
 ; X86-NEXT:    movl %esi, (%ecx,%edx,4)
-; X86-NEXT:    addl $1, %edx
+; X86-NEXT:    incl %edx
 ; X86-NEXT:    cmpl %edx, %eax
 ; X86-NEXT:    jne .LBB3_2
 ; X86-NEXT:  .LBB3_3: # %while.end
@@ -113,7 +113,7 @@
 ; X64-NEXT:    # =>This Inner Loop Header: Depth=1
 ; X64-NEXT:    rdrandl %edx
 ; X64-NEXT:    movl %edx, (%rdi,%rcx,4)
-; X64-NEXT:    addq $1, %rcx
+; X64-NEXT:    incq %rcx
 ; X64-NEXT:    cmpl %ecx, %eax
 ; X64-NEXT:    jne .LBB3_2
 ; X64-NEXT:  .LBB3_3: # %while.end


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58412.187518.patch
Type: text/x-patch
Size: 1671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190220/8e5ff3b2/attachment.bin>


More information about the llvm-commits mailing list