[PATCH] D21865: LivePhysRegs: Add available() function.

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 15:36:30 PDT 2016


MatzeB created this revision.
MatzeB added reviewers: qcolombet, t.p.northover, ab.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Herald added a subscriber: mcrosier.

findScratchNonCalleeSaveRegister() just needs a simple liveness
analysis, use LivePhysRegs for that as it is simpler and does not depend
on the kill flags. This is part of an initiative to rely less on kill flags.

This commit adds a convenience function available() to LivePhysRegs:
This function returns true if the given register is not reserved and
neither the register nor any of its aliases are alive.

Repository:
  rL LLVM

http://reviews.llvm.org/D21865

Files:
  include/llvm/CodeGen/LivePhysRegs.h
  lib/CodeGen/LivePhysRegs.cpp
  lib/Target/AArch64/AArch64FrameLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21865.62296.patch
Type: text/x-patch
Size: 4189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160629/dcae00b0/attachment.bin>


More information about the llvm-commits mailing list