Deleted Added
full compact
PPCBranchSelector.cpp (193323) PPCBranchSelector.cpp (198892)
1//===-- PPCBranchSelector.cpp - Emit long conditional branches-----*- C++ -*-=//
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//===----------------------------------------------------------------------===//

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

18#define DEBUG_TYPE "ppc-branch-select"
19#include "PPC.h"
20#include "PPCInstrBuilder.h"
21#include "PPCInstrInfo.h"
22#include "PPCPredicates.h"
23#include "llvm/CodeGen/MachineFunctionPass.h"
24#include "llvm/Target/TargetMachine.h"
25#include "llvm/ADT/Statistic.h"
1//===-- PPCBranchSelector.cpp - Emit long conditional branches-----*- C++ -*-=//
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//===----------------------------------------------------------------------===//

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

18#define DEBUG_TYPE "ppc-branch-select"
19#include "PPC.h"
20#include "PPCInstrBuilder.h"
21#include "PPCInstrInfo.h"
22#include "PPCPredicates.h"
23#include "llvm/CodeGen/MachineFunctionPass.h"
24#include "llvm/Target/TargetMachine.h"
25#include "llvm/ADT/Statistic.h"
26#include "llvm/Support/Compiler.h"
27#include "llvm/Support/MathExtras.h"
28using namespace llvm;
29
30STATISTIC(NumExpanded, "Number of branches expanded to long format");
31
32namespace {
26#include "llvm/Support/MathExtras.h"
27using namespace llvm;
28
29STATISTIC(NumExpanded, "Number of branches expanded to long format");
30
31namespace {
33 struct VISIBILITY_HIDDEN PPCBSel : public MachineFunctionPass {
32 struct PPCBSel : public MachineFunctionPass {
34 static char ID;
35 PPCBSel() : MachineFunctionPass(&ID) {}
36
37 /// BlockSizes - The sizes of the basic blocks in the function.
38 std::vector<unsigned> BlockSizes;
39
40 virtual bool runOnMachineFunction(MachineFunction &Fn);
41

--- 133 unchanged lines hidden ---
33 static char ID;
34 PPCBSel() : MachineFunctionPass(&ID) {}
35
36 /// BlockSizes - The sizes of the basic blocks in the function.
37 std::vector<unsigned> BlockSizes;
38
39 virtual bool runOnMachineFunction(MachineFunction &Fn);
40

--- 133 unchanged lines hidden ---