Add a function computeRegisterLiveness() to MachineBasicBlock. This uses analyzePhysR...
authorJames Molloy <james.molloy@arm.com>
Wed, 12 Sep 2012 10:18:23 +0000 (10:18 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 12 Sep 2012 10:18:23 +0000 (10:18 +0000)
commitc4f70d437df505e128e0debdf0c5f4ab5010e1b5
treea7d8acfb72802729badbcfe26e55fb35acb3afdc
parentb17cf29784ad526f3adfc20c5aa1b0de5c57033e
Add a function computeRegisterLiveness() to MachineBasicBlock. This uses analyzePhysReg() from r163694 to heuristically try and determine the liveness state of a physical register upon arrival at a particular instruction in a block.

The search for liveness is clipped to a specific number of instructions around the target MachineInstr, in order to avoid degenerating into an O(N^2) algorithm. It tries to use various clues about how instructions around (both before and after) a given MachineInstr use that register, to determine its state at the MachineInstr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163695 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBasicBlock.h
lib/CodeGen/MachineBasicBlock.cpp