summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/MLxExpansionPass.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-03-05 00:23:40 +0000
committerEric Christopher <echristo@gmail.com>2015-03-05 00:23:40 +0000
commit63b44882ef8704f531c97a56e6895a400c85474c (patch)
tree3db2fbc7992a981beecbecbb4abb6b405969ee2d /llvm/lib/Target/ARM/MLxExpansionPass.cpp
parent49e38965dc3424859429ee1ae043dab44cd849f5 (diff)
downloadbcm5719-llvm-63b44882ef8704f531c97a56e6895a400c85474c.tar.gz
bcm5719-llvm-63b44882ef8704f531c97a56e6895a400c85474c.zip
Cleanup and remove a chunk of getARMSubtarget calls in the
ARM TargetMachine pass pipeline construction by pushing them down into the appropriate pass. llvm-svn: 231323
Diffstat (limited to 'llvm/lib/Target/ARM/MLxExpansionPass.cpp')
-rw-r--r--llvm/lib/Target/ARM/MLxExpansionPass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/MLxExpansionPass.cpp b/llvm/lib/Target/ARM/MLxExpansionPass.cpp
index 51e519d6d3b..ed2deeaa24c 100644
--- a/llvm/lib/Target/ARM/MLxExpansionPass.cpp
+++ b/llvm/lib/Target/ARM/MLxExpansionPass.cpp
@@ -382,6 +382,9 @@ bool MLxExpansion::runOnMachineFunction(MachineFunction &Fn) {
TRI = Fn.getSubtarget().getRegisterInfo();
MRI = &Fn.getRegInfo();
const ARMSubtarget *STI = &Fn.getSubtarget<ARMSubtarget>();
+ // Only run this for CortexA9.
+ if (!STI->isCortexA9())
+ return false;
isLikeA9 = STI->isLikeA9() || STI->isSwift();
isSwift = STI->isSwift();
OpenPOWER on IntegriCloud