diff options
author | Benjamin Maxwell <benjamin.maxwell@arm.com> | 2025-08-21 09:06:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-21 09:06:32 +0100 |
commit | 810ea69edd5cfb04d2ae4654eb3ebcba707f4e64 (patch) | |
tree | 475352bc100b28d882d7f45b1852f911fcb51482 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | ff5767a02c878070bea35a667301ca66082cf400 (diff) | |
download | llvm-810ea69edd5cfb04d2ae4654eb3ebcba707f4e64.zip llvm-810ea69edd5cfb04d2ae4654eb3ebcba707f4e64.tar.gz llvm-810ea69edd5cfb04d2ae4654eb3ebcba707f4e64.tar.bz2 |
[LiveRegUnits] Exclude runtime defined liveins when computing liveouts (#154325)
These liveins are not defined by predecessors, so should not be
considered as liveouts in predecessor blocks. This resolves:
- https://github.com/llvm/llvm-project/pull/149062#discussion_r2285072001
- https://github.com/llvm/llvm-project/pull/153417#issuecomment-3199972351
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index c3c5a0f..08a51b9 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -1781,9 +1781,6 @@ MachineBasicBlock::livein_iterator MachineBasicBlock::livein_begin() const { MachineBasicBlock::liveout_iterator MachineBasicBlock::liveout_begin() const { const MachineFunction &MF = *getParent(); - assert(MF.getProperties().hasTracksLiveness() && - "Liveness information is accurate"); - const TargetLowering &TLI = *MF.getSubtarget().getTargetLowering(); MCRegister ExceptionPointer, ExceptionSelector; if (MF.getFunction().hasPersonalityFn()) { |