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 | 71ad2c9eda710bc26ec1621a9afefad11dd7fad2 (patch) | |
tree | 9854a19c8acd95da320530173701c38eb6b5cfac /include | |
parent | 6bdd261df972b5e70e4242721ab16b57c6fe3d1f (diff) | |
download | external_llvm-71ad2c9eda710bc26ec1621a9afefad11dd7fad2.zip external_llvm-71ad2c9eda710bc26ec1621a9afefad11dd7fad2.tar.gz external_llvm-71ad2c9eda710bc26ec1621a9afefad11dd7fad2.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Transforms/Utils/Local.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h index f63796c..e61dcb3 100644 --- a/include/llvm/Transforms/Utils/Local.h +++ b/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); //===----------------------------------------------------------------------===// |