mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user