[PATCH] D118534: [X86] Update generic process model to x86-64-v3 to match with GCC

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 29 17:52:43 PST 2022


pengfei updated this revision to Diff 404317.
pengfei added a comment.

Remove shuffle flags.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118534

Files:
  llvm/lib/Target/X86/X86.td
  llvm/test/CodeGen/X86/rdtsc-upgrade.ll
  llvm/test/CodeGen/X86/rdtsc.ll
  llvm/test/CodeGen/X86/segmented-stacks-dynamic.ll
  llvm/test/CodeGen/X86/twoaddr-lea.ll
  llvm/test/MC/X86/x86-directive-nops-errors.s
  llvm/test/tools/llvm-mca/X86/cv_fpo_directive_no_segfault.s


Index: llvm/test/tools/llvm-mca/X86/cv_fpo_directive_no_segfault.s
===================================================================
--- llvm/test/tools/llvm-mca/X86/cv_fpo_directive_no_segfault.s
+++ llvm/test/tools/llvm-mca/X86/cv_fpo_directive_no_segfault.s
@@ -1,5 +1,5 @@
 # NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
-# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=generic -resource-pressure=false -instruction-info=false < %s | FileCheck %s
+# RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -resource-pressure=false -instruction-info=false < %s | FileCheck %s
 
 .cv_fpo_pushreg ebx
 add %eax, %eax
Index: llvm/test/MC/X86/x86-directive-nops-errors.s
===================================================================
--- llvm/test/MC/X86/x86-directive-nops-errors.s
+++ llvm/test/MC/X86/x86-directive-nops-errors.s
@@ -1,5 +1,5 @@
 # RUN: not llvm-mc -triple i386 %s -filetype=obj -o /dev/null 2>&1 | FileCheck --check-prefix=X86 %s
-# RUN: not llvm-mc -triple=x86_64 %s -filetype=obj -o /dev/null 2>&1 | FileCheck --check-prefix=X64 %s
+# RUN: not llvm-mc -triple=x86_64 -mcpu=x86-64 %s -filetype=obj -o /dev/null 2>&1 | FileCheck --check-prefix=X64 %s
 
 .nops 4, 3
 # X86: :[[@LINE-1]]:1: error: illegal NOP size 3.
Index: llvm/test/CodeGen/X86/twoaddr-lea.ll
===================================================================
--- llvm/test/CodeGen/X86/twoaddr-lea.ll
+++ llvm/test/CodeGen/X86/twoaddr-lea.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mcpu=generic -mtriple=x86_64-apple-darwin | FileCheck %s
+; RUN: llc < %s -mcpu=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
 
 ;; X's live range extends beyond the shift, so the register allocator
 ;; cannot coalesce it with Y.  Because of this, a copy needs to be
Index: llvm/test/CodeGen/X86/segmented-stacks-dynamic.ll
===================================================================
--- llvm/test/CodeGen/X86/segmented-stacks-dynamic.ll
+++ llvm/test/CodeGen/X86/segmented-stacks-dynamic.ll
@@ -1,10 +1,10 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mcpu=generic -mtriple=i686-linux -verify-machineinstrs | FileCheck %s -check-prefix=X86
-; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux -verify-machineinstrs | FileCheck %s -check-prefix=X64
-; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-gnux32 -verify-machineinstrs | FileCheck %s -check-prefix=X32ABI
-; RUN: llc < %s -mcpu=generic -mtriple=i686-linux -filetype=obj
-; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux -filetype=obj
-; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-gnux32 -filetype=obj
+; RUN: llc < %s -mcpu=x86-64 -mtriple=i686-linux -verify-machineinstrs | FileCheck %s -check-prefix=X86
+; RUN: llc < %s -mcpu=x86-64 -mtriple=x86_64-linux -verify-machineinstrs | FileCheck %s -check-prefix=X64
+; RUN: llc < %s -mcpu=x86-64 -mtriple=x86_64-linux-gnux32 -verify-machineinstrs | FileCheck %s -check-prefix=X32ABI
+; RUN: llc < %s -mcpu=x86-64 -mtriple=i686-linux -filetype=obj
+; RUN: llc < %s -mcpu=x86-64 -mtriple=x86_64-linux -filetype=obj
+; RUN: llc < %s -mcpu=x86-64 -mtriple=x86_64-linux-gnux32 -filetype=obj
 
 ; Just to prevent the alloca from being optimized away
 declare void @dummy_use(i32*, i32)
Index: llvm/test/CodeGen/X86/rdtsc.ll
===================================================================
--- llvm/test/CodeGen/X86/rdtsc.ll
+++ llvm/test/CodeGen/X86/rdtsc.ll
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple=i686-unknown-unknown -mcpu=generic | FileCheck %s --check-prefix=X86
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=generic | FileCheck %s --check-prefix=X64
+; RUN: llc < %s -mtriple=i686-unknown-unknown -mcpu=x86-64 | FileCheck %s --check-prefix=X86
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 | FileCheck %s --check-prefix=X64
 
 ; Verify that we correctly lower ISD::READCYCLECOUNTER.
 
Index: llvm/test/CodeGen/X86/rdtsc-upgrade.ll
===================================================================
--- llvm/test/CodeGen/X86/rdtsc-upgrade.ll
+++ llvm/test/CodeGen/X86/rdtsc-upgrade.ll
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
-; RUN: llc < %s -mtriple=i686-unknown-unknown -mcpu=generic | FileCheck %s --check-prefix=X86
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=generic | FileCheck %s --check-prefix=X64
+; RUN: llc < %s -mtriple=i686-unknown-unknown -mcpu=x86-64 | FileCheck %s --check-prefix=X86
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 | FileCheck %s --check-prefix=X64
 
 ; Verify upgrading of the old form of the rdtscp intrinsic.
 
Index: llvm/lib/Target/X86/X86.td
===================================================================
--- llvm/lib/Target/X86/X86.td
+++ llvm/lib/Target/X86/X86.td
@@ -1215,8 +1215,12 @@
                 [FeatureX87, FeatureCMPXCHG8B, Feature64Bit],
                 [TuningSlow3OpsLEA,
                  TuningSlowDivide64,
-                 TuningSlowIncDec,
                  TuningMacroFusion,
+                 TuningFastScalarFSQRT,
+                 TuningFastSHLDRotate,
+                 TuningFast15ByteNOP,
+                 TuningPOPCNTFalseDeps,
+                 TuningLZCNTFalseDeps,
                  TuningInsertVZEROUPPER]>;
 
 def : Proc<"i386",            [FeatureX87],


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118534.404317.patch
Type: text/x-patch
Size: 5501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220130/8c02f3d1/attachment.bin>


More information about the llvm-commits mailing list