summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsFastISel.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-08-26 01:55:47 +0000
committerMatthias Braun <matze@braunis.de>2015-08-26 01:55:47 +0000
commitccfc9c8d6d4c69efb83825e9d384714736bbae72 (patch)
treea6da2bf7bbc4d6d96384c857ba484f3a5aeeb148 /llvm/lib/Target/Mips/MipsFastISel.cpp
parent17af60779654e74ba6e635581d456213b762462f (diff)
downloadbcm5719-llvm-ccfc9c8d6d4c69efb83825e9d384714736bbae72.tar.gz
bcm5719-llvm-ccfc9c8d6d4c69efb83825e9d384714736bbae72.zip
FastISel: Use finishCondBranch() for ARM,Mips,PowerPC FastISel
Note that after this change branch probabilities are preserved now. llvm-svn: 245998
Diffstat (limited to 'llvm/lib/Target/Mips/MipsFastISel.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsFastISel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsFastISel.cpp b/llvm/lib/Target/Mips/MipsFastISel.cpp
index f050cae26d6..7fdfeefb31f 100644
--- a/llvm/lib/Target/Mips/MipsFastISel.cpp
+++ b/llvm/lib/Target/Mips/MipsFastISel.cpp
@@ -912,8 +912,7 @@ bool MipsFastISel::selectBranch(const Instruction *I) {
BuildMI(*BrBB, FuncInfo.InsertPt, DbgLoc, TII.get(Mips::BGTZ))
.addReg(CondReg)
.addMBB(TBB);
- fastEmitBranch(FBB, DbgLoc);
- FuncInfo.MBB->addSuccessor(TBB);
+ finishCondBranch(BI->getParent(), TBB, FBB);
return true;
}
return false;
OpenPOWER on IntegriCloud