OSDN Git Service

[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)
commit60a5c7791ac3917f77972223e2a84cb37c6f1bcc
treed529db4a3361b6adc851ac09558297870654a374
parente6f49e3ad8b2231b32298f09133a87271e133d41
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342940 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCopyPropagation.cpp