Skip to content

Commit 927b75d

Browse files
committed
[MachineCopyPropagation] Minor clang-formatting. NFC
llvm-svn: 342700
1 parent f853c6e commit 927b75d

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

llvm/lib/CodeGen/MachineCopyPropagation.cpp

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -78,54 +78,54 @@ using RegList = SmallVector<unsigned, 4>;
7878
using SourceMap = DenseMap<unsigned, RegList>;
7979
using Reg2MIMap = DenseMap<unsigned, MachineInstr *>;
8080

81-
class MachineCopyPropagation : public MachineFunctionPass {
82-
const TargetRegisterInfo *TRI;
83-
const TargetInstrInfo *TII;
84-
const MachineRegisterInfo *MRI;
81+
class MachineCopyPropagation : public MachineFunctionPass {
82+
const TargetRegisterInfo *TRI;
83+
const TargetInstrInfo *TII;
84+
const MachineRegisterInfo *MRI;
8585

86-
public:
87-
static char ID; // Pass identification, replacement for typeid
86+
public:
87+
static char ID; // Pass identification, replacement for typeid
8888

89-
MachineCopyPropagation() : MachineFunctionPass(ID) {
90-
initializeMachineCopyPropagationPass(*PassRegistry::getPassRegistry());
91-
}
89+
MachineCopyPropagation() : MachineFunctionPass(ID) {
90+
initializeMachineCopyPropagationPass(*PassRegistry::getPassRegistry());
91+
}
9292

93-
void getAnalysisUsage(AnalysisUsage &AU) const override {
94-
AU.setPreservesCFG();
95-
MachineFunctionPass::getAnalysisUsage(AU);
96-
}
93+
void getAnalysisUsage(AnalysisUsage &AU) const override {
94+
AU.setPreservesCFG();
95+
MachineFunctionPass::getAnalysisUsage(AU);
96+
}
9797

98-
bool runOnMachineFunction(MachineFunction &MF) override;
98+
bool runOnMachineFunction(MachineFunction &MF) override;
9999

100-
MachineFunctionProperties getRequiredProperties() const override {
101-
return MachineFunctionProperties().set(
102-
MachineFunctionProperties::Property::NoVRegs);
103-
}
100+
MachineFunctionProperties getRequiredProperties() const override {
101+
return MachineFunctionProperties().set(
102+
MachineFunctionProperties::Property::NoVRegs);
103+
}
104104

105-
private:
106-
void ClobberRegister(unsigned Reg);
107-
void ReadRegister(unsigned Reg);
108-
void CopyPropagateBlock(MachineBasicBlock &MBB);
109-
bool eraseIfRedundant(MachineInstr &Copy, unsigned Src, unsigned Def);
110-
void forwardUses(MachineInstr &MI);
111-
bool isForwardableRegClassCopy(const MachineInstr &Copy,
112-
const MachineInstr &UseI, unsigned UseIdx);
113-
bool hasImplicitOverlap(const MachineInstr &MI, const MachineOperand &Use);
105+
private:
106+
void ClobberRegister(unsigned Reg);
107+
void ReadRegister(unsigned Reg);
108+
void CopyPropagateBlock(MachineBasicBlock &MBB);
109+
bool eraseIfRedundant(MachineInstr &Copy, unsigned Src, unsigned Def);
110+
void forwardUses(MachineInstr &MI);
111+
bool isForwardableRegClassCopy(const MachineInstr &Copy,
112+
const MachineInstr &UseI, unsigned UseIdx);
113+
bool hasImplicitOverlap(const MachineInstr &MI, const MachineOperand &Use);
114114

115-
/// Candidates for deletion.
116-
SmallSetVector<MachineInstr*, 8> MaybeDeadCopies;
115+
/// Candidates for deletion.
116+
SmallSetVector<MachineInstr *, 8> MaybeDeadCopies;
117117

118-
/// Def -> available copies map.
119-
Reg2MIMap AvailCopyMap;
118+
/// Def -> available copies map.
119+
Reg2MIMap AvailCopyMap;
120120

121-
/// Def -> copies map.
122-
Reg2MIMap CopyMap;
121+
/// Def -> copies map.
122+
Reg2MIMap CopyMap;
123123

124-
/// Src -> Def map
125-
SourceMap SrcMap;
124+
/// Src -> Def map
125+
SourceMap SrcMap;
126126

127-
bool Changed;
128-
};
127+
bool Changed;
128+
};
129129

130130
} // end anonymous namespace
131131

0 commit comments

Comments
 (0)