[llvm-commits] [llvm] r158702 - /llvm/trunk/lib/Target/Mips/MipsLongBranch.cpp
Akira Hatanaka
ahatanaka at mips.com
Mon Jun 18 20:45:29 PDT 2012
Author: ahatanak
Date: Mon Jun 18 22:45:29 2012
New Revision: 158702
URL: http://llvm.org/viewvc/llvm-project?rev=158702&view=rev
Log:
Make MipsLongBranch::runOnMachineFunction return true.
Modified:
llvm/trunk/lib/Target/Mips/MipsLongBranch.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsLongBranch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsLongBranch.cpp?rev=158702&r1=158701&r2=158702&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsLongBranch.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsLongBranch.cpp Mon Jun 18 22:45:29 2012
@@ -375,7 +375,7 @@
emitGPDisp(F, TII);
if (SkipLongBranch)
- return false;
+ return true;
MF = &F;
initMBBInfo();
@@ -393,9 +393,9 @@
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;
@@ -414,5 +414,5 @@
if (EverMadeChange)
MF->RenumberBlocks();
- return EverMadeChange;
+ return true;
}
More information about the llvm-commits
mailing list