]> granicus.if.org Git - llvm/commit
LiveRegUnits: Add accumulateBackward() function
authorMatthias Braun <matze@braunis.de>
Sat, 21 Jan 2017 02:21:04 +0000 (02:21 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 21 Jan 2017 02:21:04 +0000 (02:21 +0000)
commit5fe20f64f3f89254249a71743297cb2020b34f52
tree7ef0e56aa847541f673218957bbeb40005905eeb
parent4f4c80c1df00f8fbe047a747340ef409bfb6c2b6
LiveRegUnits: Add accumulateBackward() function

Re-Commit r292543 with a fix for the situation when the chain end is
MBB.end().

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@292705 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveRegUnits.h
lib/CodeGen/LiveRegUnits.cpp
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp