Save LaneMask with livein registers
authorMatthias Braun <matze@braunis.de>
Wed, 9 Sep 2015 18:08:03 +0000 (18:08 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 9 Sep 2015 18:08:03 +0000 (18:08 +0000)
commitaf5ff60200812e518c72a022fb4c66b9a5f0116a
treeec3ecaee1c5d95a969d8940623ff0ac3dbd5b0a3
parent6111cd8660c5fca74db6f3ee68d2581037bd60b3
Save LaneMask with livein registers

With subregister liveness enabled we can detect the case where only
parts of a register are live in, this is expressed as a 32bit lanemask.
The current code only keeps registers in the live-in list and therefore
enumerated all subregisters affected by the lanemask. This turned out to
be too conservative as the subregister may also cover additional parts
of the lanemask which are not live. Expressing a given lanemask by
enumerating a minimum set of subregisters is computationally expensive
so the best solution is to simply change the live-in list to store the
lanemasks as well. This will reduce memory usage for targets using
subregister liveness and slightly increase it for other targets

Differential Revision: http://reviews.llvm.org/D12442

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247171 91177308-0d34-0410-b5e6-96231b3b80d8
24 files changed:
include/llvm/CodeGen/MachineBasicBlock.h
include/llvm/CodeGen/RegisterScavenging.h
lib/CodeGen/AggressiveAntiDepBreaker.cpp
lib/CodeGen/CriticalAntiDepBreaker.cpp
lib/CodeGen/DeadMachineInstructionElim.cpp
lib/CodeGen/ExecutionDepsFix.cpp
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/LivePhysRegs.cpp
lib/CodeGen/LiveVariables.cpp
lib/CodeGen/MIRPrinter.cpp
lib/CodeGen/MachineBasicBlock.cpp
lib/CodeGen/MachineLICM.cpp
lib/CodeGen/MachineVerifier.cpp
lib/CodeGen/RegAllocFast.cpp
lib/CodeGen/RegisterScavenging.cpp
lib/CodeGen/ScheduleDAGInstrs.cpp
lib/CodeGen/TailDuplication.cpp
lib/CodeGen/VirtRegMap.cpp
lib/Target/ARM/ARMFrameLowering.cpp
lib/Target/Hexagon/HexagonCFGOptimizer.cpp
lib/Target/Mips/MipsDelaySlotFiller.cpp
lib/Target/SystemZ/SystemZShortenInst.cpp
lib/Target/X86/X86FloatingPoint.cpp
lib/Target/X86/X86FrameLowering.cpp