diff options
| author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-11-29 22:10:02 +0000 |
|---|---|---|
| committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2013-11-29 22:10:02 +0000 |
| commit | 1bc3cce040c3c7083e5b092b2b2625f184bb8890 (patch) | |
| tree | 52a98e9f8d3f1a93fd75917505579af73d435ad5 /llvm/lib/Target | |
| parent | e3e940d887346a344dfb2c8bba187a69fc426a08 (diff) | |
| download | bcm5719-llvm-1bc3cce040c3c7083e5b092b2b2625f184bb8890.tar.gz bcm5719-llvm-1bc3cce040c3c7083e5b092b2b2625f184bb8890.zip | |
Revert revision 195965.
llvm-svn: 195967
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsLongBranch.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsLongBranch.cpp b/llvm/lib/Target/Mips/MipsLongBranch.cpp index 2efe57847ad..ea8cc802835 100644 --- a/llvm/lib/Target/Mips/MipsLongBranch.cpp +++ b/llvm/lib/Target/Mips/MipsLongBranch.cpp @@ -437,10 +437,8 @@ bool MipsLongBranch::runOnMachineFunction(MachineFunction &F) { if (!I->Br || I->HasLongBranch) continue; - int ShVal = TM.getSubtarget<MipsSubtarget>().inMicroMipsMode() ? 2 : 4; - // Check if offset fits into 16-bit immediate field of branches. - if (!ForceLongBranch && isInt<16>(computeOffset(I->Br) / ShVal)) + if (!ForceLongBranch && isInt<16>(computeOffset(I->Br) / 4)) continue; I->HasLongBranch = true; |

