Register allocator: set CSRFirstUseCost to 5 for ARM64.
authorManman Ren <manman.ren@gmail.com>
Mon, 31 Mar 2014 21:06:36 +0000 (21:06 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 31 Mar 2014 21:06:36 +0000 (21:06 +0000)
commitc7e0a8178a69fa5ea7d3b1f72290c4580cc69502
tree77119c8528a5e910a4c40391c2acb7f599ce0974
parent8d8c507bbfa5b2587c0b750875cd1f54f68e6b1a
Register allocator: set CSRFirstUseCost to 5 for ARM64.

A value of 5 means if we have a split or spill option that has a really
low cost (1 << 14 is the entry frequency), we will choose to spill
or split the really cold path before using a callee-saved register.

This gives us the performance benefit on SPECInt2k and is also conservative.

rdar://16162005

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205248 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM64/ARM64RegisterInfo.h