mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-03 13:51:39 +00:00
Revert r133607. This is causing failures in the Clang gccTestSuite.
Specifically, gcc.c-torture/compile/pr21356.c. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bbdffa9ab0
commit
f78b5952c3
@ -568,9 +568,9 @@ bool
|
|||||||
TailDuplicatePass::isSimpleBB(MachineBasicBlock *TailBB) {
|
TailDuplicatePass::isSimpleBB(MachineBasicBlock *TailBB) {
|
||||||
if (TailBB->succ_size() != 1)
|
if (TailBB->succ_size() != 1)
|
||||||
return false;
|
return false;
|
||||||
MachineBasicBlock::iterator I = TailBB->begin();
|
MachineBasicBlock::iterator I = TailBB->getFirstNonPHI();
|
||||||
MachineBasicBlock::iterator E = TailBB->end();
|
MachineBasicBlock::iterator E = TailBB->end();
|
||||||
while (I != E && I->isDebugValue())
|
while (I->isDebugValue() && I != E)
|
||||||
++I;
|
++I;
|
||||||
if (I == E)
|
if (I == E)
|
||||||
return true;
|
return true;
|
||||||
@ -712,7 +712,7 @@ TailDuplicatePass::TailDuplicate(MachineBasicBlock *TailBB, MachineFunction &MF,
|
|||||||
DenseSet<unsigned> UsedByPhi;
|
DenseSet<unsigned> UsedByPhi;
|
||||||
getRegsUsedByPHIs(*TailBB, &UsedByPhi);
|
getRegsUsedByPHIs(*TailBB, &UsedByPhi);
|
||||||
|
|
||||||
if (isSimpleBB(TailBB))
|
if (0 && isSimpleBB(TailBB))
|
||||||
return duplicateSimpleBB(TailBB, TDBBs, UsedByPhi, Copies);
|
return duplicateSimpleBB(TailBB, TDBBs, UsedByPhi, Copies);
|
||||||
|
|
||||||
// Iterate through all the unique predecessors and tail-duplicate this
|
// Iterate through all the unique predecessors and tail-duplicate this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user