Deleted Added
full compact
EdgeBundles.cpp (221345) EdgeBundles.cpp (224145)
1//===-------- EdgeBundles.cpp - Bundles of CFG edges ----------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 25 unchanged lines hidden (view full) ---

34void EdgeBundles::getAnalysisUsage(AnalysisUsage &AU) const {
35 AU.setPreservesAll();
36 MachineFunctionPass::getAnalysisUsage(AU);
37}
38
39bool EdgeBundles::runOnMachineFunction(MachineFunction &mf) {
40 MF = &mf;
41 EC.clear();
1//===-------- EdgeBundles.cpp - Bundles of CFG edges ----------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 25 unchanged lines hidden (view full) ---

34void EdgeBundles::getAnalysisUsage(AnalysisUsage &AU) const {
35 AU.setPreservesAll();
36 MachineFunctionPass::getAnalysisUsage(AU);
37}
38
39bool EdgeBundles::runOnMachineFunction(MachineFunction &mf) {
40 MF = &mf;
41 EC.clear();
42 EC.grow(2 * MF->size());
42 EC.grow(2 * MF->getNumBlockIDs());
43
44 for (MachineFunction::const_iterator I = MF->begin(), E = MF->end(); I != E;
45 ++I) {
46 const MachineBasicBlock &MBB = *I;
47 unsigned OutE = 2 * MBB.getNumber() + 1;
48 // Join the outgoing bundle with the ingoing bundles of all successors.
49 for (MachineBasicBlock::const_succ_iterator SI = MBB.succ_begin(),
50 SE = MBB.succ_end(); SI != SE; ++SI)

--- 47 unchanged lines hidden ---
43
44 for (MachineFunction::const_iterator I = MF->begin(), E = MF->end(); I != E;
45 ++I) {
46 const MachineBasicBlock &MBB = *I;
47 unsigned OutE = 2 * MBB.getNumber() + 1;
48 // Join the outgoing bundle with the ingoing bundles of all successors.
49 for (MachineBasicBlock::const_succ_iterator SI = MBB.succ_begin(),
50 SE = MBB.succ_end(); SI != SE; ++SI)

--- 47 unchanged lines hidden ---