[ARM][RDA] Allow multiple killed users
authorSam Parker <sam.parker@arm.com>
Thu, 27 Feb 2020 10:54:08 +0000 (10:54 +0000)
committerSam Parker <sam.parker@arm.com>
Tue, 3 Mar 2020 15:12:29 +0000 (15:12 +0000)
commitdfe8f5da4c707c447b80ff5bf78313b35621d9c4
tree6f16d43dd4e6948ce8011e6b6df77289e284e6a7
parentf9896435c99b3288e1eba2b9226b56f603329cf1
[ARM][RDA] Allow multiple killed users

In RDA, check against the already decided dead instructions when
looking at users. This allows an instruction to be removed if it
has multiple users, but they're all dead.

This means that IT instructions can be considered killed once all
the itstate using instructions are dead.

Differential Revision: https://reviews.llvm.org/D75245
llvm/lib/CodeGen/ReachingDefAnalysis.cpp
llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp