diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-11-29 19:40:47 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-11-29 19:40:47 +0000 |
commit | ae6f2cb1fc520aa56777dab1e7603aee9429f6dd (patch) | |
tree | fe1e4bcdfd790431bacad8bb0c6919d0c74b6c18 /include/llvm/CodeGen/FastISel.h | |
parent | dda8c6ff9eeccf375592d287a41dd18af738e282 (diff) |
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
Diffstat (limited to 'include/llvm/CodeGen/FastISel.h')
-rw-r--r-- | include/llvm/CodeGen/FastISel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index 5cb7d8a6f4..b9c1456c19 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -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); }; } |