mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 15:39:00 +00:00
Didn't mean the last commit. Revert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
afdc7fda65
commit
8202010364
@ -255,10 +255,10 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &Fn) {
|
||||
bool Change = false;
|
||||
for (unsigned i = 0, e = CPUsers.size(); i != e; ++i)
|
||||
Change |= HandleConstantPoolUser(Fn, i);
|
||||
//DEBUG(dumpBBs());
|
||||
DEBUG(dumpBBs());
|
||||
for (unsigned i = 0, e = ImmBranches.size(); i != e; ++i)
|
||||
Change |= FixUpImmediateBr(Fn, ImmBranches[i]);
|
||||
//DEBUG(dumpBBs());
|
||||
DEBUG(dumpBBs());
|
||||
if (!Change)
|
||||
break;
|
||||
MadeChange = true;
|
||||
@ -798,8 +798,8 @@ int ARMConstantIslands::LookForExistingCPEntry(CPUser& U, unsigned UserOffset)
|
||||
MachineInstr *CPEMI = U.CPEMI;
|
||||
|
||||
// Check to see if the CPE is already in-range.
|
||||
if (CPEIsInRange(UserMI, UserOffset, CPEMI, U.MaxDisp, false /*true*/)) {
|
||||
//DOUT << "In range\n";
|
||||
if (CPEIsInRange(UserMI, UserOffset, CPEMI, U.MaxDisp, true)) {
|
||||
DOUT << "In range\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -1120,13 +1120,11 @@ bool ARMConstantIslands::BBIsInRange(MachineInstr *MI,MachineBasicBlock *DestBB,
|
||||
unsigned BrOffset = GetOffsetOf(MI) + PCAdj;
|
||||
unsigned DestOffset = BBOffsets[DestBB->getNumber()];
|
||||
|
||||
#if 0
|
||||
DOUT << "Branch of destination BB#" << DestBB->getNumber()
|
||||
<< " from BB#" << MI->getParent()->getNumber()
|
||||
<< " max delta=" << MaxDisp
|
||||
<< " from " << GetOffsetOf(MI) << " to " << DestOffset
|
||||
<< " offset " << int(DestOffset-BrOffset) << "\t" << *MI;
|
||||
#endif
|
||||
|
||||
if (BrOffset <= DestOffset) {
|
||||
// Branch before the Dest.
|
||||
|
Loading…
Reference in New Issue
Block a user