diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-04-02 22:45:17 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-04-02 22:45:17 +0000 |
commit | 17bf4922c9c6d9e12c1e13c09e16a6058fd24b7f (patch) | |
tree | cc633ffcf063402fdd68912f385819c3c6a08160 /llvm/include | |
parent | 8baa2c7ad937a4a5bea7f368cc83b4dbce5295a3 (diff) | |
download | bcm5719-llvm-17bf4922c9c6d9e12c1e13c09e16a6058fd24b7f.tar.gz bcm5719-llvm-17bf4922c9c6d9e12c1e13c09e16a6058fd24b7f.zip |
PR9446: RecursivelyDeleteTriviallyDeadInstructions can delete the instruction
after the given instruction; make sure to handle that case correctly.
(It's difficult to trigger; the included testcase involves a dead
block, but I don't think that's a requirement.)
While I'm here, get rid of the unnecessary warning about
SimplifyInstructionsInBlock, since it should work correctly as far as I know.
llvm-svn: 128782
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Transforms/Utils/Local.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/Local.h b/llvm/include/llvm/Transforms/Utils/Local.h index f63796c4eab..e61dcb347c8 100644 --- a/llvm/include/llvm/Transforms/Utils/Local.h +++ b/llvm/include/llvm/Transforms/Utils/Local.h @@ -74,10 +74,6 @@ bool RecursivelyDeleteDeadPHINode(PHINode *PN); /// /// This returns true if it changed the code, note that it can delete /// instructions in other blocks as well in this block. -/// -/// WARNING: Do not use this function on unreachable blocks, as recursive -/// simplification is not able to handle corner-case scenarios that can -/// arise in them. bool SimplifyInstructionsInBlock(BasicBlock *BB, const TargetData *TD = 0); //===----------------------------------------------------------------------===// |