[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp PHIElimination.cpp Passes.cpp RegAllocLinearScan.cpp RegAllocLocal.cpp RegAllocSimple.cpp TwoAddressInstructionPass.cpp VirtRegMap.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Thu Jul 20 10:28:52 PDT 2006
Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.cpp updated: 1.161 -> 1.162
PHIElimination.cpp updated: 1.42 -> 1.43
Passes.cpp updated: 1.16 -> 1.17
RegAllocLinearScan.cpp updated: 1.124 -> 1.125
RegAllocLocal.cpp updated: 1.80 -> 1.81
RegAllocSimple.cpp updated: 1.68 -> 1.69
TwoAddressInstructionPass.cpp updated: 1.35 -> 1.36
VirtRegMap.cpp updated: 1.67 -> 1.68
---
Log message:
Reduce number of exported symbols
---
Diffs of the changes: (+28 -27)
LiveIntervalAnalysis.cpp | 12 ++++++------
PHIElimination.cpp | 4 ++--
Passes.cpp | 2 +-
RegAllocLinearScan.cpp | 5 +++--
RegAllocLocal.cpp | 8 ++++----
RegAllocSimple.cpp | 4 ++--
TwoAddressInstructionPass.cpp | 6 +++---
VirtRegMap.cpp | 14 +++++++-------
8 files changed, 28 insertions(+), 27 deletions(-)
Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.161 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.162
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.161 Wed May 24 12:04:04 2006
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Thu Jul 20 12:28:38 2006
@@ -40,22 +40,22 @@
namespace {
RegisterAnalysis<LiveIntervals> X("liveintervals", "Live Interval Analysis");
- Statistic<> numIntervals
+ static Statistic<> numIntervals
("liveintervals", "Number of original intervals");
- Statistic<> numIntervalsAfter
+ static Statistic<> numIntervalsAfter
("liveintervals", "Number of intervals after coalescing");
- Statistic<> numJoins
+ static Statistic<> numJoins
("liveintervals", "Number of interval joins performed");
- Statistic<> numPeep
+ static Statistic<> numPeep
("liveintervals", "Number of identity moves eliminated after coalescing");
- Statistic<> numFolded
+ static Statistic<> numFolded
("liveintervals", "Number of loads/stores folded into instructions");
- cl::opt<bool>
+ static cl::opt<bool>
EnableJoining("join-liveintervals",
cl::desc("Join compatible live intervals"),
cl::init(true));
Index: llvm/lib/CodeGen/PHIElimination.cpp
diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.42 llvm/lib/CodeGen/PHIElimination.cpp:1.43
--- llvm/lib/CodeGen/PHIElimination.cpp:1.42 Wed Jun 28 18:17:23 2006
+++ llvm/lib/CodeGen/PHIElimination.cpp Thu Jul 20 12:28:38 2006
@@ -29,8 +29,8 @@
using namespace llvm;
namespace {
- Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
- Statistic<> NumSimple("phielim", "Number of simple phis lowered");
+ static Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
+ static Statistic<> NumSimple("phielim", "Number of simple phis lowered");
struct VISIBILITY_HIDDEN PNE : public MachineFunctionPass {
bool runOnMachineFunction(MachineFunction &Fn) {
Index: llvm/lib/CodeGen/Passes.cpp
diff -u llvm/lib/CodeGen/Passes.cpp:1.16 llvm/lib/CodeGen/Passes.cpp:1.17
--- llvm/lib/CodeGen/Passes.cpp:1.16 Sun Oct 23 23:14:30 2005
+++ llvm/lib/CodeGen/Passes.cpp Thu Jul 20 12:28:38 2006
@@ -20,7 +20,7 @@
namespace {
enum RegAllocName { simple, local, linearscan };
- cl::opt<RegAllocName>
+ static cl::opt<RegAllocName>
RegAlloc(
"regalloc",
cl::desc("Register allocator to use: (default = linearscan)"),
Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.124 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.125
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.124 Wed Jun 28 17:17:39 2006
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Thu Jul 20 12:28:38 2006
@@ -37,9 +37,10 @@
namespace {
- Statistic<double> efficiency
+ static Statistic<double> efficiency
("regalloc", "Ratio of intervals processed over total intervals");
- Statistic<> NumBacktracks("regalloc", "Number of times we had to backtrack");
+ static Statistic<> NumBacktracks
+ ("regalloc", "Number of times we had to backtrack");
static unsigned numIterations = 0;
static unsigned numIntervals = 0;
Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.80 llvm/lib/CodeGen/RegAllocLocal.cpp:1.81
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.80 Wed Jun 28 18:17:23 2006
+++ llvm/lib/CodeGen/RegAllocLocal.cpp Thu Jul 20 12:28:38 2006
@@ -31,10 +31,10 @@
using namespace llvm;
namespace {
- Statistic<> NumStores("ra-local", "Number of stores added");
- Statistic<> NumLoads ("ra-local", "Number of loads added");
- Statistic<> NumFolded("ra-local", "Number of loads/stores folded into "
- "instructions");
+ static Statistic<> NumStores("ra-local", "Number of stores added");
+ static Statistic<> NumLoads ("ra-local", "Number of loads added");
+ static Statistic<> NumFolded("ra-local", "Number of loads/stores folded into "
+ "instructions");
class VISIBILITY_HIDDEN RA : public MachineFunctionPass {
const TargetMachine *TM;
MachineFunction *MF;
Index: llvm/lib/CodeGen/RegAllocSimple.cpp
diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.68 llvm/lib/CodeGen/RegAllocSimple.cpp:1.69
--- llvm/lib/CodeGen/RegAllocSimple.cpp:1.68 Wed Jun 28 17:17:39 2006
+++ llvm/lib/CodeGen/RegAllocSimple.cpp Thu Jul 20 12:28:38 2006
@@ -30,8 +30,8 @@
using namespace llvm;
namespace {
- Statistic<> NumStores("ra-simple", "Number of stores added");
- Statistic<> NumLoads ("ra-simple", "Number of loads added");
+ static Statistic<> NumStores("ra-simple", "Number of stores added");
+ static Statistic<> NumLoads ("ra-simple", "Number of loads added");
class VISIBILITY_HIDDEN RegAllocSimple : public MachineFunctionPass {
MachineFunction *MF;
Index: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff -u llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.35 llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.36
--- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.35 Wed Jun 28 17:17:39 2006
+++ llvm/lib/CodeGen/TwoAddressInstructionPass.cpp Thu Jul 20 12:28:38 2006
@@ -45,11 +45,11 @@
using namespace llvm;
namespace {
- Statistic<> NumTwoAddressInstrs("twoaddressinstruction",
+ static Statistic<> NumTwoAddressInstrs("twoaddressinstruction",
"Number of two-address instructions");
- Statistic<> NumCommuted("twoaddressinstruction",
+ static Statistic<> NumCommuted("twoaddressinstruction",
"Number of instructions commuted to coalesce");
- Statistic<> NumConvertedTo3Addr("twoaddressinstruction",
+ static Statistic<> NumConvertedTo3Addr("twoaddressinstruction",
"Number of instructions promoted to 3-address");
struct VISIBILITY_HIDDEN TwoAddressInstructionPass
Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.67 llvm/lib/CodeGen/VirtRegMap.cpp:1.68
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.67 Wed Jun 28 17:17:39 2006
+++ llvm/lib/CodeGen/VirtRegMap.cpp Thu Jul 20 12:28:38 2006
@@ -34,16 +34,16 @@
using namespace llvm;
namespace {
- Statistic<> NumSpills("spiller", "Number of register spills");
- Statistic<> NumStores("spiller", "Number of stores added");
- Statistic<> NumLoads ("spiller", "Number of loads added");
- Statistic<> NumReused("spiller", "Number of values reused");
- Statistic<> NumDSE ("spiller", "Number of dead stores elided");
- Statistic<> NumDCE ("spiller", "Number of copies elided");
+ static Statistic<> NumSpills("spiller", "Number of register spills");
+ static Statistic<> NumStores("spiller", "Number of stores added");
+ static Statistic<> NumLoads ("spiller", "Number of loads added");
+ static Statistic<> NumReused("spiller", "Number of values reused");
+ static Statistic<> NumDSE ("spiller", "Number of dead stores elided");
+ static Statistic<> NumDCE ("spiller", "Number of copies elided");
enum SpillerName { simple, local };
- cl::opt<SpillerName>
+ static cl::opt<SpillerName>
SpillerOpt("spiller",
cl::desc("Spiller to use: (default: local)"),
cl::Prefix,
More information about the llvm-commits
mailing list