diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-06-19 03:45:29 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-06-19 03:45:29 +0000 |
commit | bde801b2a7e20f3de62cacc3ef643cf0ed6e2c27 (patch) | |
tree | b82b6d65f3118630dff13b9d4e65ba2effb1c1c1 /lib/Target/Mips/MipsLongBranch.cpp | |
parent | 226ae40fc234f7deb7a605e844a84b12b2fbb8d6 (diff) | |
download | external_llvm-bde801b2a7e20f3de62cacc3ef643cf0ed6e2c27.zip external_llvm-bde801b2a7e20f3de62cacc3ef643cf0ed6e2c27.tar.gz external_llvm-bde801b2a7e20f3de62cacc3ef643cf0ed6e2c27.tar.bz2 |
Make MipsLongBranch::runOnMachineFunction return true.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsLongBranch.cpp')
-rw-r--r-- | lib/Target/Mips/MipsLongBranch.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsLongBranch.cpp b/lib/Target/Mips/MipsLongBranch.cpp index 978c49a..7be353f 100644 --- a/lib/Target/Mips/MipsLongBranch.cpp +++ b/lib/Target/Mips/MipsLongBranch.cpp @@ -375,7 +375,7 @@ bool MipsLongBranch::runOnMachineFunction(MachineFunction &F) { emitGPDisp(F, TII); if (SkipLongBranch) - return false; + return true; MF = &F; initMBBInfo(); @@ -393,9 +393,9 @@ bool MipsLongBranch::runOnMachineFunction(MachineFunction &F) { 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 @@ bool MipsLongBranch::runOnMachineFunction(MachineFunction &F) { if (EverMadeChange) MF->RenumberBlocks(); - return EverMadeChange; + return true; } |