diff options
author | Clement Courbet <courbet@google.com> | 2019-09-16 14:05:28 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2019-09-16 14:05:28 +0000 |
commit | 44bfbcc28e715212f9f8ac104424d72e76d38acf (patch) | |
tree | 163553e1f132db26a28ecec8711a0b3194b8f0d3 /llvm/lib/Target/X86/X86Subtarget.h | |
parent | f201b1c91875024224a945862cf394c24c6a29e3 (diff) | |
download | bcm5719-llvm-44bfbcc28e715212f9f8ac104424d72e76d38acf.tar.gz bcm5719-llvm-44bfbcc28e715212f9f8ac104424d72e76d38acf.zip |
[X86][NFC] Add a `use-aa` feature.
Summary:
This allows enabling useaa on the command-line and will allow enabling the
feature on a per-CPU basis where benchmarking shows improvements.
This is modelled after the ARM/AArch64 target.
Reviewers: RKSimon, andreadb, craig.topper
Subscribers: javed.absar, kristof.beyls, hiraditya, ychen, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67266
llvm-svn: 371989
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index ce926b40ac3..4d7495641d9 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/lib/Target/X86/X86Subtarget.h @@ -427,6 +427,9 @@ protected: /// Use software floating point for code generation. bool UseSoftFloat = false; + /// Use alias analysis during code generation. + bool UseAA = false; + /// The minimum alignment known to hold of the stack frame on /// entry to the function and which must be maintained by every function. unsigned stackAlignment = 4; @@ -741,6 +744,7 @@ public: X86ProcFamily == IntelTRM; } bool useSoftFloat() const { return UseSoftFloat; } + bool useAA() const override { return UseAA; } /// Use mfence if we have SSE2 or we're on x86-64 (even if we asked for /// no-sse2). There isn't any reason to disable it if the target processor |