mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Tidy up. Space before ':' in range-based for loops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -380,7 +380,7 @@ void ARM64AddressTypePromotion::mergeSExts(ValueToInsts &ValToSExtendedUses,
|
|||||||
SetOfInstructions &ToRemove) {
|
SetOfInstructions &ToRemove) {
|
||||||
DominatorTree &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
|
DominatorTree &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree();
|
||||||
|
|
||||||
for (auto &Entry: ValToSExtendedUses) {
|
for (auto &Entry : ValToSExtendedUses) {
|
||||||
Instructions &Insts = Entry.second;
|
Instructions &Insts = Entry.second;
|
||||||
Instructions CurPts;
|
Instructions CurPts;
|
||||||
for (Instruction *Inst : Insts) {
|
for (Instruction *Inst : Insts) {
|
||||||
@@ -421,7 +421,7 @@ void ARM64AddressTypePromotion::analyzeSExtension(Instructions &SExtInsts) {
|
|||||||
DenseMap<Value *, Instruction *> SeenChains;
|
DenseMap<Value *, Instruction *> SeenChains;
|
||||||
|
|
||||||
for (auto &BB : *Func) {
|
for (auto &BB : *Func) {
|
||||||
for (auto &II: BB) {
|
for (auto &II : BB) {
|
||||||
Instruction *SExt = &II;
|
Instruction *SExt = &II;
|
||||||
|
|
||||||
// Collect all sext operation per type.
|
// Collect all sext operation per type.
|
||||||
|
@@ -120,7 +120,7 @@ void ARM64BranchRelaxation::verify() {
|
|||||||
|
|
||||||
/// print block size and offset information - debugging
|
/// print block size and offset information - debugging
|
||||||
void ARM64BranchRelaxation::dumpBBs() {
|
void ARM64BranchRelaxation::dumpBBs() {
|
||||||
for (auto &MBB: *MF) {
|
for (auto &MBB : *MF) {
|
||||||
const BasicBlockInfo &BBI = BlockInfo[MBB.getNumber()];
|
const BasicBlockInfo &BBI = BlockInfo[MBB.getNumber()];
|
||||||
dbgs() << format("BB#%u\toffset=%08x\t", MBB.getNumber(), BBI.Offset)
|
dbgs() << format("BB#%u\toffset=%08x\t", MBB.getNumber(), BBI.Offset)
|
||||||
<< format("size=%#x\n", BBI.Size);
|
<< format("size=%#x\n", BBI.Size);
|
||||||
|
@@ -650,7 +650,7 @@ static void computeADRP(const InstrToInstrs &UseToDefs,
|
|||||||
ARM64FunctionInfo &ARM64FI,
|
ARM64FunctionInfo &ARM64FI,
|
||||||
const MachineDominatorTree *MDT) {
|
const MachineDominatorTree *MDT) {
|
||||||
DEBUG(dbgs() << "*** Compute LOH for ADRP\n");
|
DEBUG(dbgs() << "*** Compute LOH for ADRP\n");
|
||||||
for (const auto &Entry: UseToDefs) {
|
for (const auto &Entry : UseToDefs) {
|
||||||
unsigned Size = Entry.second.size();
|
unsigned Size = Entry.second.size();
|
||||||
if (Size == 0)
|
if (Size == 0)
|
||||||
continue;
|
continue;
|
||||||
@@ -923,7 +923,7 @@ static void computeOthers(const InstrToInstrs &UseToDefs,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool Found = false;
|
bool Found = false;
|
||||||
for (auto &Use: *Users) {
|
for (auto &Use : *Users) {
|
||||||
if (!DefsOfPotentialCandidates.count(Use)) {
|
if (!DefsOfPotentialCandidates.count(Use)) {
|
||||||
++NumTooCplxLvl1;
|
++NumTooCplxLvl1;
|
||||||
Found = true;
|
Found = true;
|
||||||
|
@@ -93,7 +93,7 @@ public:
|
|||||||
bool runOnModule(Module &M) {
|
bool runOnModule(Module &M) {
|
||||||
DEBUG(dbgs() << getPassName() << '\n');
|
DEBUG(dbgs() << getPassName() << '\n');
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
for (auto &MF: M) {
|
for (auto &MF : M) {
|
||||||
Changed |= runOnFunction(MF);
|
Changed |= runOnFunction(MF);
|
||||||
}
|
}
|
||||||
return Changed;
|
return Changed;
|
||||||
@@ -566,7 +566,7 @@ bool ARM64PromoteConstant::runOnFunction(Function &F) {
|
|||||||
SmallSet<Constant *, 8> AlreadyChecked;
|
SmallSet<Constant *, 8> AlreadyChecked;
|
||||||
|
|
||||||
for (auto &MBB : F) {
|
for (auto &MBB : F) {
|
||||||
for (auto &MI: MBB) {
|
for (auto &MI : MBB) {
|
||||||
// Traverse the operand, looking for constant vectors
|
// Traverse the operand, looking for constant vectors
|
||||||
// Replace them by a load of a global variable of type constant vector
|
// Replace them by a load of a global variable of type constant vector
|
||||||
for (unsigned OpIdx = 0, EndOpIdx = MI.getNumOperands();
|
for (unsigned OpIdx = 0, EndOpIdx = MI.getNumOperands();
|
||||||
|
@@ -138,10 +138,10 @@ bool ARM64StorePairSuppress::runOnMachineFunction(MachineFunction &mf) {
|
|||||||
// precisely determine whether a store pair can be formed. But we do want to
|
// precisely determine whether a store pair can be formed. But we do want to
|
||||||
// filter out most situations where we can't form store pairs to avoid
|
// filter out most situations where we can't form store pairs to avoid
|
||||||
// computing trace metrics in those cases.
|
// computing trace metrics in those cases.
|
||||||
for (auto &MBB: *MF) {
|
for (auto &MBB : *MF) {
|
||||||
bool SuppressSTP = false;
|
bool SuppressSTP = false;
|
||||||
unsigned PrevBaseReg = 0;
|
unsigned PrevBaseReg = 0;
|
||||||
for (auto &MI: MBB) {
|
for (auto &MI : MBB) {
|
||||||
if (!isNarrowFPStore(MI))
|
if (!isNarrowFPStore(MI))
|
||||||
continue;
|
continue;
|
||||||
unsigned BaseReg;
|
unsigned BaseReg;
|
||||||
|
Reference in New Issue
Block a user