[llvm] r308607 - [ARM] Simplify ExpandPseudoInst. NFC.
Javed Absar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 20 05:35:37 PDT 2017
Author: javed.absar
Date: Thu Jul 20 05:35:37 2017
New Revision: 308607
URL: http://llvm.org/viewvc/llvm-project?rev=308607&view=rev
Log:
[ARM] Simplify ExpandPseudoInst. NFC.
Remove headers not required and convert to range-loop
Reviewed by: @mcrosier
Differential Revision: https://reviews.llvm.org/D35626
Modified:
llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp?rev=308607&r1=308606&r2=308607&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp Thu Jul 20 05:35:37 2017
@@ -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::runOnMachineFuncti
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;
More information about the llvm-commits
mailing list