mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Whitespace: be consistent with pointer syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88929 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -423,7 +423,7 @@ static unsigned EstimateRuntime(MachineBasicBlock::iterator I,
|
|||||||
// branches temporarily for tail merging). In the case where CurMBB ends
|
// branches temporarily for tail merging). In the case where CurMBB ends
|
||||||
// with a conditional branch to the next block, optimize by reversing the
|
// with a conditional branch to the next block, optimize by reversing the
|
||||||
// test and conditionally branching to SuccMBB instead.
|
// test and conditionally branching to SuccMBB instead.
|
||||||
static void FixTail(MachineBasicBlock* CurMBB, MachineBasicBlock *SuccBB,
|
static void FixTail(MachineBasicBlock *CurMBB, MachineBasicBlock *SuccBB,
|
||||||
const TargetInstrInfo *TII) {
|
const TargetInstrInfo *TII) {
|
||||||
MachineFunction *MF = CurMBB->getParent();
|
MachineFunction *MF = CurMBB->getParent();
|
||||||
MachineFunction::iterator I = next(MachineFunction::iterator(CurMBB));
|
MachineFunction::iterator I = next(MachineFunction::iterator(CurMBB));
|
||||||
@@ -591,8 +591,8 @@ unsigned BranchFolder::ComputeSameTails(unsigned CurHash,
|
|||||||
/// RemoveBlocksWithHash - Remove all blocks with hash CurHash from
|
/// RemoveBlocksWithHash - Remove all blocks with hash CurHash from
|
||||||
/// MergePotentials, restoring branches at ends of blocks as appropriate.
|
/// MergePotentials, restoring branches at ends of blocks as appropriate.
|
||||||
void BranchFolder::RemoveBlocksWithHash(unsigned CurHash,
|
void BranchFolder::RemoveBlocksWithHash(unsigned CurHash,
|
||||||
MachineBasicBlock* SuccBB,
|
MachineBasicBlock *SuccBB,
|
||||||
MachineBasicBlock* PredBB) {
|
MachineBasicBlock *PredBB) {
|
||||||
MPIterator CurMPIter, B;
|
MPIterator CurMPIter, B;
|
||||||
for (CurMPIter = prior(MergePotentials.end()), B = MergePotentials.begin();
|
for (CurMPIter = prior(MergePotentials.end()), B = MergePotentials.begin();
|
||||||
CurMPIter->getHash() == CurHash;
|
CurMPIter->getHash() == CurHash;
|
||||||
@@ -658,7 +658,7 @@ unsigned BranchFolder::CreateCommonTailOnlyBlock(MachineBasicBlock *&PredBB,
|
|||||||
// if any, is given in PredBB.
|
// if any, is given in PredBB.
|
||||||
|
|
||||||
bool BranchFolder::TryTailMergeBlocks(MachineBasicBlock *SuccBB,
|
bool BranchFolder::TryTailMergeBlocks(MachineBasicBlock *SuccBB,
|
||||||
MachineBasicBlock* PredBB) {
|
MachineBasicBlock *PredBB) {
|
||||||
bool MadeChange = false;
|
bool MadeChange = false;
|
||||||
|
|
||||||
// Except for the special cases below, tail-merge if there are at least
|
// Except for the special cases below, tail-merge if there are at least
|
||||||
@@ -847,7 +847,7 @@ bool BranchFolder::TailMergeBlocks(MachineFunction &MF) {
|
|||||||
for (MachineBasicBlock::pred_iterator P = I->pred_begin(),
|
for (MachineBasicBlock::pred_iterator P = I->pred_begin(),
|
||||||
E2 = I->pred_end();
|
E2 = I->pred_end();
|
||||||
P != E2; ++P) {
|
P != E2; ++P) {
|
||||||
MachineBasicBlock* PBB = *P;
|
MachineBasicBlock *PBB = *P;
|
||||||
// Skip blocks that loop to themselves, can't tail merge these.
|
// Skip blocks that loop to themselves, can't tail merge these.
|
||||||
if (PBB == IBB)
|
if (PBB == IBB)
|
||||||
continue;
|
continue;
|
||||||
@@ -872,7 +872,7 @@ bool BranchFolder::TailMergeBlocks(MachineFunction &MF) {
|
|||||||
// to have a bit in the edge so we didn't have to do all this.
|
// to have a bit in the edge so we didn't have to do all this.
|
||||||
if (IBB->isLandingPad()) {
|
if (IBB->isLandingPad()) {
|
||||||
MachineFunction::iterator IP = PBB; IP++;
|
MachineFunction::iterator IP = PBB; IP++;
|
||||||
MachineBasicBlock* PredNextBB = NULL;
|
MachineBasicBlock *PredNextBB = NULL;
|
||||||
if (IP != MF.end())
|
if (IP != MF.end())
|
||||||
PredNextBB = IP;
|
PredNextBB = IP;
|
||||||
if (TBB == NULL) {
|
if (TBB == NULL) {
|
||||||
|
Reference in New Issue
Block a user