aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2021-03-10 16:13:25 -0800
committerRiver Riddle <riddleriver@gmail.com>2021-03-10 16:39:50 -0800
commit4e02eb8014c4dd8dd21071947525926bbe8046ef (patch)
tree58a2a8425be78c45acf0dc2422b67e09ddd57f34 /llvm/lib/CodeGen/MachineOperand.cpp
parent70af0bf6fe462cc16a2e56657d20eeed126d41d0 (diff)
downloadllvm-4e02eb8014c4dd8dd21071947525926bbe8046ef.zip
llvm-4e02eb8014c4dd8dd21071947525926bbe8046ef.tar.gz
llvm-4e02eb8014c4dd8dd21071947525926bbe8046ef.tar.bz2
[mlir] Optimize the implementation of RegionDCE
The current implementation has some inefficiencies that become noticeable when running on large modules. This revision optimizes the code, and updates some out-dated idioms with newer utilities. The main components of this optimization include: * Add an overload of Block::eraseArguments that allows for O(N) erasure of disjoint arguments. * Don't process entry block arguments given that we don't erase them at this point. * Don't track individual operation results, given that we don't erase them. We can just track the parent operation. Differential Revision: https://reviews.llvm.org/D98309
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions