summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
diff options
context:
space:
mode:
authorJaved Absar <javed.absar@arm.com>2017-07-20 12:35:37 +0000
committerJaved Absar <javed.absar@arm.com>2017-07-20 12:35:37 +0000
commite9599e39fecd2531ffa2494f97f65b88836859fa (patch)
tree5d57f679565d52f4d69064748923dff597f8cde7 /llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
parentfb953926b155448f1ca460a4cb39f6a4a8cbbdb5 (diff)
downloadbcm5719-llvm-e9599e39fecd2531ffa2494f97f65b88836859fa.tar.gz
bcm5719-llvm-e9599e39fecd2531ffa2494f97f65b88836859fa.zip
[ARM] Simplify ExpandPseudoInst. NFC.
Remove headers not required and convert to range-loop Reviewed by: @mcrosier Differential Revision: https://reviews.llvm.org/D35626 llvm-svn: 308607
Diffstat (limited to 'llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
index ec49f0d37af..b17bc3f6e28 100644
--- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
@@ -24,13 +24,6 @@
#include "llvm/CodeGen/LivePhysRegs.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
-#include "llvm/CodeGen/MachineInstrBuilder.h"
-#include "llvm/CodeGen/MachineInstrBundle.h"
-#include "llvm/IR/GlobalValue.h"
-#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/raw_ostream.h" // FIXME: for debug only. remove!
-#include "llvm/Target/TargetFrameLowering.h"
-#include "llvm/Target/TargetRegisterInfo.h"
using namespace llvm;
@@ -1711,9 +1704,8 @@ bool ARMExpandPseudo::runOnMachineFunction(MachineFunction &MF) {
AFI = MF.getInfo<ARMFunctionInfo>();
bool Modified = false;
- for (MachineFunction::iterator MFI = MF.begin(), E = MF.end(); MFI != E;
- ++MFI)
- Modified |= ExpandMBB(*MFI);
+ for (MachineBasicBlock &MBB : MF)
+ Modified |= ExpandMBB(MBB);
if (VerifyARMPseudo)
MF.verify(this, "After expanding ARM pseudo instructions.");
return Modified;
OpenPOWER on IntegriCloud