commit | 27499e3f1beaf21b5afa95c0008649a6cfcadf7a | [log] [tgz] |
---|---|---|
author | Nate Begeman <natebegeman@mac.com> | Sun Apr 10 01:48:29 2005 +0000 |
committer | Nate Begeman <natebegeman@mac.com> | Sun Apr 10 01:48:29 2005 +0000 |
tree | 6eb2727c651ce1bf5d58ca9560b3e7c91bbd0891 | |
parent | a0e3e9474f429e6bd0dc902c1fe3236d43ff1276 [diff] [blame] |
Make sure that BRCOND branches can be converted into long branches too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21198 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp index 5496ac4..f6b47fc 100644 --- a/lib/Target/PowerPC/PPCISelPattern.cpp +++ b/lib/Target/PowerPC/PPCISelPattern.cpp
@@ -1022,7 +1022,9 @@ } } } else { - BuildMI(BB, Opc, 2).addReg(PPC::CR0).addMBB(Dest); + BuildMI(BB, PPC::COND_BRANCH, 4).addReg(PPC::CR0).addImm(Opc) + .addMBB(Dest).addMBB(It); + //BuildMI(BB, Opc, 2).addReg(PPC::CR0).addMBB(Dest); } return; }