[PATCH] D35626: [ARM] Simplify ExpandPseudoInst. NFC.
Javed Absar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 20 05:36:18 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL308607: [ARM] Simplify ExpandPseudoInst. NFC. (authored by javed.absar).
Changed prior to commit:
https://reviews.llvm.org/D35626?vs=107316&id=107491#toc
Repository:
rL LLVM
https://reviews.llvm.org/D35626
Files:
llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp
Index: llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp
===================================================================
--- llvm/trunk/lib/Target/ARM/ARMExpandPseudoInsts.cpp
+++ llvm/trunk/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 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35626.107491.patch
Type: text/x-patch
Size: 1138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170720/2a7fa3f1/attachment.bin>
More information about the llvm-commits
mailing list