mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Follow up to r114630. Do not optimize away unconditional branch following a conditional one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd3a41a6b3
commit
b8db1981b8
@ -1617,9 +1617,8 @@ void SelectionDAGBuilder::visitBitTestHeader(BitTestBlock &B,
|
||||
MVT::Other, CopyTo, RangeCmp,
|
||||
DAG.getBasicBlock(B.Default));
|
||||
|
||||
if (MBB != NextBlock)
|
||||
BrRange = DAG.getNode(ISD::BR, getCurDebugLoc(), MVT::Other, CopyTo,
|
||||
DAG.getBasicBlock(MBB));
|
||||
BrRange = DAG.getNode(ISD::BR, getCurDebugLoc(), MVT::Other, CopyTo,
|
||||
DAG.getBasicBlock(MBB));
|
||||
|
||||
DAG.setRoot(BrRange);
|
||||
}
|
||||
@ -1672,9 +1671,8 @@ void SelectionDAGBuilder::visitBitTestCase(MachineBasicBlock* NextMBB,
|
||||
if (++BBI != FuncInfo.MF->end())
|
||||
NextBlock = BBI;
|
||||
|
||||
if (NextMBB != NextBlock)
|
||||
BrAnd = DAG.getNode(ISD::BR, getCurDebugLoc(), MVT::Other, BrAnd,
|
||||
DAG.getBasicBlock(NextMBB));
|
||||
BrAnd = DAG.getNode(ISD::BR, getCurDebugLoc(), MVT::Other, BrAnd,
|
||||
DAG.getBasicBlock(NextMBB));
|
||||
|
||||
DAG.setRoot(BrAnd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user