[RA CopyHints] Fix compile-time regression
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 3 Oct 2018 12:51:19 +0000 (12:51 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 3 Oct 2018 12:51:19 +0000 (12:51 +0000)
commitfb3a97bec033e1b8243404678e0149c4c268ef41
tree4bef72d9e07e103c4d50e589ab0da0b99a72fde2
parent5a768ddd449f51092f68625579b8b478a61be4c5
[RA CopyHints] Fix compile-time regression

This patch makes sure that a register is only hinted once to RA. In extreme
cases the same register can otherwise be hinted numerous times and cause a
compile time slowdown.

Review: Simon Pilgrim
https://reviews.llvm.org/D52826

llvm-svn: 343686
llvm/lib/CodeGen/CalcSpillWeights.cpp