mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Make some predicates static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45718 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6aae7a748e
commit
9e549202a0
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user