]> granicus.if.org Git - llvm/commit
[mips] Fix machine verifier errors in the long branch pass
authorSimon Dardis <simon.dardis@imgtec.com>
Wed, 14 Jun 2017 12:16:47 +0000 (12:16 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Wed, 14 Jun 2017 12:16:47 +0000 (12:16 +0000)
commit3e4134fdf135182419fa5ddc8a2a5ab4abdab480
tree5a2400befe4ffe5f2713140e23c6ad20867da8f6
parent4d07d46bb1da239a2066cb9cf6f3daa13187b4e5
[mips] Fix machine verifier errors in the long branch pass

This patch fixes two systemic machine verifier errors in the long
branch pass. The first is the incorrect basic block successors
and the second was the incorrect construction of several jump
instructions.

This partially resolves PR27458 and the associated PR32146.

Reviewers: slthakur

Differential Revision: https://reviews.llvm.org/D33378

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305382 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsLongBranch.cpp
test/CodeGen/Mips/longbranch.ll