summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackColoring.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2012-09-12 10:18:23 +0000
committerJames Molloy <james.molloy@arm.com>2012-09-12 10:18:23 +0000
commitc747cdae24c6c6b90a0f7757bf54ff3a88e85e66 (patch)
treed4de3eb7f67dee531bb502c7486535cdb24d33f2 /llvm/lib/CodeGen/StackColoring.cpp
parent381fab93d5cb3dbb227e22109c987bb9f375708e (diff)
downloadbcm5719-llvm-c747cdae24c6c6b90a0f7757bf54ff3a88e85e66.tar.gz
bcm5719-llvm-c747cdae24c6c6b90a0f7757bf54ff3a88e85e66.zip
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. llvm-svn: 163695
Diffstat (limited to 'llvm/lib/CodeGen/StackColoring.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud