mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
Change a few instance variables to be local variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e02a698acf
commit
4e9785ed8a
@ -34,10 +34,8 @@ STATISTIC(NumSunk, "Number of machine instructions sunk");
|
||||
|
||||
namespace {
|
||||
class VISIBILITY_HIDDEN MachineSinking : public MachineFunctionPass {
|
||||
const TargetMachine *TM;
|
||||
const TargetInstrInfo *TII;
|
||||
const TargetRegisterInfo *TRI;
|
||||
MachineFunction *CurMF; // Current MachineFunction
|
||||
MachineRegisterInfo *RegInfo; // Machine register information
|
||||
MachineDominatorTree *DT; // Machine dominator tree
|
||||
AliasAnalysis *AA;
|
||||
@ -92,19 +90,16 @@ bool MachineSinking::AllUsesDominatedByBlock(unsigned Reg,
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool MachineSinking::runOnMachineFunction(MachineFunction &MF) {
|
||||
DEBUG(errs() << "******** Machine Sinking ********\n");
|
||||
|
||||
CurMF = &MF;
|
||||
TM = &CurMF->getTarget();
|
||||
TII = TM->getInstrInfo();
|
||||
TRI = TM->getRegisterInfo();
|
||||
RegInfo = &CurMF->getRegInfo();
|
||||
const TargetMachine &TM = MF.getTarget();
|
||||
TII = TM.getInstrInfo();
|
||||
TRI = TM.getRegisterInfo();
|
||||
RegInfo = &MF.getRegInfo();
|
||||
DT = &getAnalysis<MachineDominatorTree>();
|
||||
AA = &getAnalysis<AliasAnalysis>();
|
||||
AllocatableSet = TRI->getAllocatableSet(*CurMF);
|
||||
AllocatableSet = TRI->getAllocatableSet(MF);
|
||||
|
||||
bool EverMadeChange = false;
|
||||
|
||||
@ -112,7 +107,7 @@ bool MachineSinking::runOnMachineFunction(MachineFunction &MF) {
|
||||
bool MadeChange = false;
|
||||
|
||||
// Process all basic blocks.
|
||||
for (MachineFunction::iterator I = CurMF->begin(), E = CurMF->end();
|
||||
for (MachineFunction::iterator I = MF.begin(), E = MF.end();
|
||||
I != E; ++I)
|
||||
MadeChange |= ProcessBlock(*I);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user