mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 15:04:57 +00:00
LoopDeletion depends on loops having dedicated exits.
llvm-svn: 86180
This commit is contained in:
parent
f65735f0c5
commit
6a3eefbfeb
@ -115,6 +115,10 @@ bool LoopDeletion::runOnLoop(Loop* L, LPPassManager& LPM) {
|
||||
if (!preheader)
|
||||
return false;
|
||||
|
||||
// If LoopSimplify form is not available, stay out of trouble.
|
||||
if (!L->hasDedicatedExits())
|
||||
return false;
|
||||
|
||||
// We can't remove loops that contain subloops. If the subloops were dead,
|
||||
// they would already have been removed in earlier executions of this pass.
|
||||
if (L->begin() != L->end())
|
||||
|
Loading…
Reference in New Issue
Block a user