diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-06-11 16:35:55 +0100 |
---|---|---|
committer | Jeremy Morse <jeremy.morse@sony.com> | 2025-06-11 17:35:29 +0100 |
commit | 459475020aeff15d0f886ab99c59d66b744d3e17 (patch) | |
tree | d16e4a84e71cc75e3183cb6d0a68a86453722d84 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | fe7bf4b90b1a835418bddd2b2aa63b4977a9f6d2 (diff) | |
download | llvm-459475020aeff15d0f886ab99c59d66b744d3e17.zip llvm-459475020aeff15d0f886ab99c59d66b744d3e17.tar.gz llvm-459475020aeff15d0f886ab99c59d66b744d3e17.tar.bz2 |
Reapply 76197ea6f91f after removing an assertion
Specifically this is the assertion in BasicBlock.cpp. Now that we're not
examining or setting that flag consistently (because it'll be deleted in
about an hour) there's no need to keep this assertion.
Original commit title:
[DebugInfo][RemoveDIs] Remove some debug intrinsic-only codepaths (#143451)
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 59cd0dc..e8a3df3 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -1671,9 +1671,6 @@ void FastISel::fastEmitBranch(MachineBasicBlock *MSucc, const DebugLoc &DbgLoc) { const BasicBlock *BB = FuncInfo.MBB->getBasicBlock(); bool BlockHasMultipleInstrs = &BB->front() != &BB->back(); - // Handle legacy case of debug intrinsics - if (BlockHasMultipleInstrs && !BB->getModule()->IsNewDbgInfoFormat) - BlockHasMultipleInstrs = BB->sizeWithoutDebug() > 1; if (BlockHasMultipleInstrs && FuncInfo.MBB->isLayoutSuccessor(MSucc)) { // For more accurate line information if this is the only non-debug // instruction in the block then emit it, otherwise we have the |