[all-commits] [llvm/llvm-project] 23d576: [CodeGen] Split some functionality from DetectDead...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Jan 25 13:31:57 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 23d576bb838efa54cba6217728e6443264bf0f5d
https://github.com/llvm/llvm-project/commit/23d576bb838efa54cba6217728e6443264bf0f5d
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-01-25 (Wed, 25 Jan 2023)
Changed paths:
A llvm/include/llvm/CodeGen/DetectDeadLanes.h
M llvm/lib/CodeGen/DetectDeadLanes.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list