mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Minor tweak
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
76e51a87e7
commit
c8f25d91bd
@ -147,8 +147,9 @@ BasicBlock *Loop::getLoopPreheader() const {
|
||||
BasicBlock *Header = getHeader();
|
||||
for (pred_iterator PI = pred_begin(Header), PE = pred_end(Header);
|
||||
PI != PE; ++PI)
|
||||
if (!contains(*PI)) { // If the block is not in the loop...
|
||||
if (Out) return 0; // Multiple predecessors outside the loop
|
||||
if (!contains(*PI)) { // If the block is not in the loop...
|
||||
if (Out && Out != *PI)
|
||||
return 0; // Multiple predecessors outside the loop
|
||||
Out = *PI;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user