mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
[mips] Do not add SecondLastInst to list BranchInstrs if there is only one
terminator. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0a4b60df1
commit
888e8fefd2
@ -226,8 +226,6 @@ AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
|
|||||||
return BT_None;
|
return BT_None;
|
||||||
}
|
}
|
||||||
|
|
||||||
BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst);
|
|
||||||
|
|
||||||
// If there is only one terminator instruction, process it.
|
// If there is only one terminator instruction, process it.
|
||||||
if (!SecondLastOpc) {
|
if (!SecondLastOpc) {
|
||||||
// Unconditional branch
|
// Unconditional branch
|
||||||
@ -246,6 +244,8 @@ AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
|
|||||||
if (++I != REnd && isUnpredicatedTerminator(&*I))
|
if (++I != REnd && isUnpredicatedTerminator(&*I))
|
||||||
return BT_None;
|
return BT_None;
|
||||||
|
|
||||||
|
BranchInstrs.insert(BranchInstrs.begin(), SecondLastInst);
|
||||||
|
|
||||||
// If second to last instruction is an unconditional branch,
|
// If second to last instruction is an unconditional branch,
|
||||||
// analyze it and remove the last instruction.
|
// analyze it and remove the last instruction.
|
||||||
if (SecondLastOpc == UncondBrOpc) {
|
if (SecondLastOpc == UncondBrOpc) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user