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:
Chris Lattner 2002-04-09 15:05:04 +00:00
parent dbc3b00df5
commit 73c8d7520f

View File

@ -130,6 +130,7 @@ void InsertPrologEpilogCode::InsertEpilogCode(Function *F)
while (termMvec.back()->getOpCode() == NOP)
{
assert( termMvec.back() == bbMvec.back());
delete termMvec.back();
termMvec.pop_back();
bbMvec.pop_back();
++numNOPs;