summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-02-23 02:35:33 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-02-23 02:35:33 +0000
commit97e6428014eb5df2565f1dc1dde92b2701cd0dfa (patch)
tree2d1937e90cc22b3a402460730741a0dae28f1b15 /llvm/lib
parentbf83659d11cfa81de18d87288cd2c48468aa0c95 (diff)
downloadbcm5719-llvm-97e6428014eb5df2565f1dc1dde92b2701cd0dfa.tar.gz
bcm5719-llvm-97e6428014eb5df2565f1dc1dde92b2701cd0dfa.zip
Change VFPNeonA8 definition to make the code easier to read.
llvm-svn: 126298
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrFormats.td2
-rw-r--r--llvm/lib/Target/ARM/NEONMoveFix.cpp9
2 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrFormats.td b/llvm/lib/Target/ARM/ARMInstrFormats.td
index b0cec4b1c37..359ac45cee1 100644
--- a/llvm/lib/Target/ARM/ARMInstrFormats.td
+++ b/llvm/lib/Target/ARM/ARMInstrFormats.td
@@ -134,7 +134,7 @@ def GenericDomain : Domain<0>;
def VFPDomain : Domain<1>; // Instructions in VFP domain only
def NeonDomain : Domain<2>; // Instructions in Neon domain only
def VFPNeonDomain : Domain<3>; // Instructions in both VFP & Neon domains
-def VFPNeonA8Domain : Domain<7>; // Instructions in VFP & Neon under A8
+def VFPNeonA8Domain : Domain<5>; // Instructions in VFP & Neon under A8
//===----------------------------------------------------------------------===//
// ARM special operands.
diff --git a/llvm/lib/Target/ARM/NEONMoveFix.cpp b/llvm/lib/Target/ARM/NEONMoveFix.cpp
index e8393c53dd8..965665c2821 100644
--- a/llvm/lib/Target/ARM/NEONMoveFix.cpp
+++ b/llvm/lib/Target/ARM/NEONMoveFix.cpp
@@ -45,13 +45,8 @@ namespace {
}
static bool inNEONDomain(unsigned Domain, bool isA8) {
- if (Domain & ARMII::DomainNEON) {
- // Some instructions only go down NEON pipeline when executed on CortexA8.
- if (Domain & ARMII::DomainNEONA8)
- return isA8;
- return true;
- }
- return false;
+ return (Domain & ARMII::DomainNEON) ||
+ (isA8 && (Domain & ARMII::DomainNEONA8));
}
bool NEONMoveFixPass::InsertMoves(MachineBasicBlock &MBB) {
OpenPOWER on IntegriCloud