OSDN Git Service

RegisterPressure: allocatable physreg uses are always kills
authorMatthias Braun <matze@braunis.de>
Sat, 17 Oct 2015 00:46:57 +0000 (00:46 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 17 Oct 2015 00:46:57 +0000 (00:46 +0000)
commit4bcbcdbff22b33b3ed87ddd5712485da2019f3e1
treeb0fb15b6e8539f54a76df4e9f8439b379719be7c
parentfffd64acde62a29d26375a160ff5903860af41ed
RegisterPressure: allocatable physreg uses are always kills

This property was already used in the code path when no liveness
intervals are present. Unfortunately the code path that uses liveness
intervals tried to query a cached live interval for an allocatable
physreg, those are usually not computed so a conservative default was
used.

This doesn't affect any of the lit testcases. This is a foreclosure to
upcoming changes which should be NFC but without this patch this tidbit
wouldn't be NFC.

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