mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Delete NOP instructions as they are eliminated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2199 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dbc3b00df5
commit
73c8d7520f
@ -130,6 +130,7 @@ void InsertPrologEpilogCode::InsertEpilogCode(Function *F)
|
|||||||
while (termMvec.back()->getOpCode() == NOP)
|
while (termMvec.back()->getOpCode() == NOP)
|
||||||
{
|
{
|
||||||
assert( termMvec.back() == bbMvec.back());
|
assert( termMvec.back() == bbMvec.back());
|
||||||
|
delete termMvec.back();
|
||||||
termMvec.pop_back();
|
termMvec.pop_back();
|
||||||
bbMvec.pop_back();
|
bbMvec.pop_back();
|
||||||
++numNOPs;
|
++numNOPs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user