mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Cut off crazy computation. This helps PR1622 slightly.
llvm-svn: 41522
This commit is contained in:
parent
c649f24384
commit
73aa3d62dc
@ -8283,6 +8283,10 @@ static bool DeadPHICycle(PHINode *PN,
|
||||
// Remember this node, and if we find the cycle, return.
|
||||
if (!PotentiallyDeadPHIs.insert(PN))
|
||||
return true;
|
||||
|
||||
// Don't scan crazily complex things.
|
||||
if (PotentiallyDeadPHIs.size() == 16)
|
||||
return false;
|
||||
|
||||
if (PHINode *PU = dyn_cast<PHINode>(PN->use_back()))
|
||||
return DeadPHICycle(PU, PotentiallyDeadPHIs);
|
||||
|
Loading…
Reference in New Issue
Block a user