mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Cut off crazy computation. This helps PR1622 slightly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1cd39a4f6e
commit
92103de8ce
@ -8284,6 +8284,10 @@ static bool DeadPHICycle(PHINode *PN,
|
|||||||
if (!PotentiallyDeadPHIs.insert(PN))
|
if (!PotentiallyDeadPHIs.insert(PN))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
// Don't scan crazily complex things.
|
||||||
|
if (PotentiallyDeadPHIs.size() == 16)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (PHINode *PU = dyn_cast<PHINode>(PN->use_back()))
|
if (PHINode *PU = dyn_cast<PHINode>(PN->use_back()))
|
||||||
return DeadPHICycle(PU, PotentiallyDeadPHIs);
|
return DeadPHICycle(PU, PotentiallyDeadPHIs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user