aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-01-25 13:09:58 -0800
committerCraig Topper <craig.topper@sifive.com>2023-01-25 13:27:46 -0800
commit23d576bb838efa54cba6217728e6443264bf0f5d (patch)
tree8fa40dfd3f3fff041de35236b70ab3433b825da5 /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
parent7768f63e5b7adc8a92b8f8041e9c1d298b011128 (diff)
downloadllvm-23d576bb838efa54cba6217728e6443264bf0f5d.zip
llvm-23d576bb838efa54cba6217728e6443264bf0f5d.tar.gz
llvm-23d576bb838efa54cba6217728e6443264bf0f5d.tar.bz2
[CodeGen] Split some functionality from DetectDeadLanes into its own class to be reused. NFC
This is an alternative to D140382. This moves the first part of runOnce into a new class that can be reused by D129735. This encapsulates the ownership of the worklist, and VRegInfos into the new class. The code for updating the dead lanes stays in the DetectDeadLanes class. The new class is created on the stack during runOnMachineFunction so all the data structures will be deleted after each run. Previously we only cleared them after each run so the memory might have stayed allocated across runs. Except for VRegInfo which was always deleted. Hopefully this allocation change isn't a big deal. Reviewed By: BeMg Differential Revision: https://reviews.llvm.org/D141993
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions