git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158702
91177308-0d34-0410-b5e6-
96231b3b80d8
emitGPDisp(F, TII);
if (SkipLongBranch)
- return false;
+ return true;
MF = &F;
initMBBInfo();
if (!I->Br || I->HasLongBranch)
continue;
- int64_t Offset = computeOffset(I->Br);
-
if (!ForceLongBranch) {
+ int64_t Offset = computeOffset(I->Br);
+
// Check if offset fits into 16-bit immediate field of branches.
if ((I->Br->isConditionalBranch() || IsPIC) && isInt<16>(Offset / 4))
continue;
if (EverMadeChange)
MF->RenumberBlocks();
- return EverMadeChange;
+ return true;
}