BranchRelaxation: Recompute live-ins when splitting a block
authorMatthias Braun <matze@braunis.de>
Fri, 16 Dec 2016 23:55:37 +0000 (23:55 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 16 Dec 2016 23:55:37 +0000 (23:55 +0000)
commit181983055f7a543a83ad424bc24b3962af50274a
tree2e8c3d6c0d489434d4771be4ced9e8c5539a4236
parent2dfb68821410a6cc84951bc8c2d5c232fba148b8
BranchRelaxation: Recompute live-ins when splitting a block

Factors out and reuses live-in computation code from BranchFolding.

Differential Revision: https://reviews.llvm.org/D27558

llvm-svn: 290013
llvm/include/llvm/CodeGen/LivePhysRegs.h
llvm/include/llvm/CodeGen/MachineBasicBlock.h
llvm/lib/CodeGen/BranchFolding.cpp
llvm/lib/CodeGen/BranchFolding.h
llvm/lib/CodeGen/BranchRelaxation.cpp
llvm/lib/CodeGen/LivePhysRegs.cpp
llvm/lib/CodeGen/MachineBasicBlock.cpp