diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-03-31 19:38:48 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-03-31 19:38:48 +0000 |
commit | 463d358f1dfdd28a6900f2f109a160be71d2a8ef (patch) | |
tree | 59c104ce5689ba7b4afe0fabc7d067a3c2703c8b /lib/Target/ARM/ARMSubtarget.h | |
parent | a52d7da1d8c424276f79b80c89ed045166083730 (diff) | |
download | llvm-463d358f1dfdd28a6900f2f109a160be71d2a8ef.tar.gz llvm-463d358f1dfdd28a6900f2f109a160be71d2a8ef.tar.bz2 llvm-463d358f1dfdd28a6900f2f109a160be71d2a8ef.tar.xz |
Distribute (A + B) * C to (A * C) + (B * C) to make use of NEON multiplier
accumulator forwarding:
vadd d3, d0, d1
vmul d3, d3, d2
=>
vmul d3, d0, d2
vmla d3, d1, d2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h index 76c1c3fb41..e024182c47 100644 --- a/lib/Target/ARM/ARMSubtarget.h +++ b/lib/Target/ARM/ARMSubtarget.h @@ -61,6 +61,10 @@ protected: /// whether the FP VML[AS] instructions are slow (if so, don't use them). bool SlowFPVMLx; + /// HasVMLxForwarding - If true, NEON has special multiplier accumulator + /// forwarding to allow mul + mla being issued back to back. + bool HasVMLxForwarding; + /// SlowFPBrcc - True if floating point compare + branch is slow. bool SlowFPBrcc; @@ -182,6 +186,7 @@ protected: bool hasT2ExtractPack() const { return HasT2ExtractPack; } bool hasDataBarrier() const { return HasDataBarrier; } bool useFPVMLx() const { return !SlowFPVMLx; } + bool hasVMLxForwarding() const { return HasVMLxForwarding; } bool isFPBrccSlow() const { return SlowFPBrcc; } bool isFPOnlySP() const { return FPOnlySP; } bool prefers32BitThumb() const { return Pref32BitThumb; } |