Skip to content

Commit d0be944

Browse files
authored
[X86] Add slow div64 tuning flag to Nehalem target (#91129)
This appears to have been missed because later cpus don't inherit from Nehalem tuning much. Noticed while cleaning up for #90985
1 parent c144157 commit d0be944

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/lib/Target/X86/X86.td

+1
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ def ProcessorFeatures {
873873
// Nehalem
874874
list<SubtargetFeature> NHMFeatures = X86_64V2Features;
875875
list<SubtargetFeature> NHMTuning = [TuningMacroFusion,
876+
TuningSlowDivide64,
876877
TuningInsertVZEROUPPER,
877878
TuningNoDomainDelayMov];
878879

llvm/test/CodeGen/X86/bypass-slow-division-64.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; RUN: llc < %s -mtriple=x86_64-- -mcpu=x86-64-v3 | FileCheck %s --check-prefixes=CHECK,SLOW-DIVQ
88
; RUN: llc < %s -mtriple=x86_64-- -mcpu=x86-64-v4 | FileCheck %s --check-prefixes=CHECK,SLOW-DIVQ
99
; Intel
10-
; RUN: llc < %s -mtriple=x86_64-- -mcpu=nehalem | FileCheck %s --check-prefixes=CHECK,FAST-DIVQ
10+
; RUN: llc < %s -mtriple=x86_64-- -mcpu=nehalem | FileCheck %s --check-prefixes=CHECK,SLOW-DIVQ
1111
; RUN: llc < %s -mtriple=x86_64-- -mcpu=sandybridge | FileCheck %s --check-prefixes=CHECK,SLOW-DIVQ
1212
; RUN: llc < %s -mtriple=x86_64-- -mcpu=haswell | FileCheck %s --check-prefixes=CHECK,SLOW-DIVQ
1313
; RUN: llc < %s -mtriple=x86_64-- -mcpu=skylake | FileCheck %s --check-prefixes=CHECK,SLOW-DIVQ

0 commit comments

Comments
 (0)