diff options
author | Owen Anderson <resistor@mac.com> | 2008-01-07 21:30:40 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-01-07 21:30:40 +0000 |
commit | bbc6352d1f5e2f9567c973cd1a26e7f3a2b4422b (patch) | |
tree | f638a15f8b926b1364fa3dd05de8cdd0e4ef476a /llvm/lib/CodeGen/StrongPHIElimination.cpp | |
parent | 6917870be59031b364fc60492d2dc96599cb4ed8 (diff) | |
download | bcm5719-llvm-bbc6352d1f5e2f9567c973cd1a26e7f3a2b4422b.tar.gz bcm5719-llvm-bbc6352d1f5e2f9567c973cd1a26e7f3a2b4422b.zip |
Make some predicates static.
llvm-svn: 45718
Diffstat (limited to 'llvm/lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StrongPHIElimination.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index 1a1f77c1c68..c3d554a3b63 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -231,7 +231,7 @@ StrongPHIElimination::computeDomForest(std::set<unsigned>& regs) { /// isLiveIn - helper method that determines, from a VarInfo, if a register /// is live into a block -bool isLiveIn(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) { +static bool isLiveIn(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) { if (V.AliveBlocks.test(MBB->getNumber())) return true; @@ -244,7 +244,7 @@ bool isLiveIn(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) { /// isLiveOut - help method that determines, from a VarInfo, if a register is /// live out of a block. -bool isLiveOut(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) { +static bool isLiveOut(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) { if (MBB == V.DefInst->getParent() || V.UsedBlocks.test(MBB->getNumber())) { for (std::vector<MachineInstr*>::iterator I = V.Kills.begin(), @@ -260,7 +260,7 @@ bool isLiveOut(LiveVariables::VarInfo& V, MachineBasicBlock* MBB) { /// isKillInst - helper method that determines, from a VarInfo, if an /// instruction kills a given register -bool isKillInst(LiveVariables::VarInfo& V, MachineInstr* MI) { +static bool isKillInst(LiveVariables::VarInfo& V, MachineInstr* MI) { return std::find(V.Kills.begin(), V.Kills.end(), MI) != V.Kills.end(); } |