[MachineCopyPropagation] Rework how we manage RegMask clobbers
authorJustin Bogner <mail@justinbogner.com>
Tue, 25 Sep 2018 04:45:25 +0000 (04:45 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 25 Sep 2018 04:45:25 +0000 (04:45 +0000)
commitdb02d3d4b38e513593dbe562f94ecb6fad345314
tree8ebe6e8fe734be582f14153be02e2a497cbf0b65
parent0e5b60326e306cba3f4434692e5d37ffee8a2ae9
[MachineCopyPropagation] Rework how we manage RegMask clobbers

Instead of updating the CopyTracker's maps each time we come across a
RegMask, defer checking for this kind of interference until we're
actually trying to propagate a copy. This avoids the need to
repeatedly iterate over maps in the cases where we don't end up doing
any work.

This is a slight compile time improvement for MachineCopyPropagation
as is, but it also enables a much bigger improvement that I'll follow
up with soon.

Differential Revision: https://reviews.llvm.org/D52370

llvm-svn: 342940
llvm/lib/CodeGen/MachineCopyPropagation.cpp