mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Implement: ArgumentPromotion/chained.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12200 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
afa38575aa
commit
86a734bd40
@ -328,6 +328,11 @@ void ArgPromotion::DoPromotion(Function *F, std::vector<Argument*> &Args2Prom) {
|
||||
LI->replaceAllUsesWith(I2);
|
||||
LI->getParent()->getInstList().erase(LI);
|
||||
}
|
||||
|
||||
// If we inserted a new pointer type, it's possible that IT could be
|
||||
// promoted too.
|
||||
if (isa<PointerType>(I2->getType()))
|
||||
WorkList.insert(NF);
|
||||
++I2;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user