If fast-isel fails, remove dead instructions generated during the failed

attempt.  

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145425 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chad Rosier
2011-11-29 19:40:47 +00:00
parent dda8c6ff9e
commit ae6f2cb1fc
3 changed files with 54 additions and 0 deletions

View File

@@ -381,6 +381,10 @@ private:
/// hasTrivialKill - Test whether the given value has exactly one use.
bool hasTrivialKill(const Value *V) const;
/// removeDeadCode - Remove all dead instructions between the I and E.
void removeDeadCode(MachineBasicBlock::iterator I,
MachineBasicBlock::iterator E);
};
}