mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-19 13:38:56 +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,7 +1617,6 @@ void SelectionDAGBuilder::visitBitTestHeader(BitTestBlock &B,
|
|||||||
MVT::Other, CopyTo, RangeCmp,
|
MVT::Other, CopyTo, RangeCmp,
|
||||||
DAG.getBasicBlock(B.Default));
|
DAG.getBasicBlock(B.Default));
|
||||||
|
|
||||||
if (MBB != NextBlock)
|
|
||||||
BrRange = DAG.getNode(ISD::BR, getCurDebugLoc(), MVT::Other, CopyTo,
|
BrRange = DAG.getNode(ISD::BR, getCurDebugLoc(), MVT::Other, CopyTo,
|
||||||
DAG.getBasicBlock(MBB));
|
DAG.getBasicBlock(MBB));
|
||||||
|
|
||||||
@ -1672,7 +1671,6 @@ void SelectionDAGBuilder::visitBitTestCase(MachineBasicBlock* NextMBB,
|
|||||||
if (++BBI != FuncInfo.MF->end())
|
if (++BBI != FuncInfo.MF->end())
|
||||||
NextBlock = BBI;
|
NextBlock = BBI;
|
||||||
|
|
||||||
if (NextMBB != NextBlock)
|
|
||||||
BrAnd = DAG.getNode(ISD::BR, getCurDebugLoc(), MVT::Other, BrAnd,
|
BrAnd = DAG.getNode(ISD::BR, getCurDebugLoc(), MVT::Other, BrAnd,
|
||||||
DAG.getBasicBlock(NextMBB));
|
DAG.getBasicBlock(NextMBB));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user