OSDN Git Service

LiveRegUnits: Add accumulateBackward() function
authorMatthias Braun <matze@braunis.de>
Fri, 20 Jan 2017 00:16:17 +0000 (00:16 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 20 Jan 2017 00:16:17 +0000 (00:16 +0000)
commit8e75c50b78fc86ffb4700f67979ba63ccc12618f
treeaa0820029d5ea4d13fcb768e56490b9bd9d021bc
parentf91130f149ef9863ae68d0e92e3d132f82ad9825
LiveRegUnits: Add accumulateBackward() function

This function can be used to accumulate the set of all read and modified
register in a sequence of instructions.

Use this code in AArch64A57FPLoadBalancing::scavengeRegister() to prove
the concept.

- The AArch64A57LoadBalancing code is using a backwards analysis now
  which is irrespective of kill flags. This is the main motivation for
  this change.

Differential Revision: http://reviews.llvm.org/D22082

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292543 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveRegUnits.h
lib/CodeGen/LiveRegUnits.cpp
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp