mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
[ScalarEvolutionExpander] Simplify findInsertPointAfter
No functional change is intended. The loop could only execute, at most, once. llvm-svn: 259701
This commit is contained in:
parent
c9aa4356bd
commit
e08ae5f43b
@ -95,14 +95,12 @@ static BasicBlock::iterator findInsertPointAfter(Instruction *I,
|
||||
while (isa<PHINode>(IP))
|
||||
++IP;
|
||||
|
||||
while (IP->isEHPad()) {
|
||||
if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) {
|
||||
++IP;
|
||||
} else if (isa<CatchSwitchInst>(IP)) {
|
||||
IP = MustDominate->getFirstInsertionPt();
|
||||
} else {
|
||||
llvm_unreachable("unexpected eh pad!");
|
||||
}
|
||||
if (isa<FuncletPadInst>(IP) || isa<LandingPadInst>(IP)) {
|
||||
++IP;
|
||||
} else if (isa<CatchSwitchInst>(IP)) {
|
||||
IP = MustDominate->getFirstInsertionPt();
|
||||
} else {
|
||||
assert(!IP->isEHPad() && "unexpected eh pad!");
|
||||
}
|
||||
|
||||
return IP;
|
||||
|
Loading…
x
Reference in New Issue
Block a user