commit | e1bec7513461e3710f661b73ba11a76eca032ffc | [log] [tgz] |
---|---|---|
author | Arnaud A. de Grandmaison <arnaud.degrandmaison@arm.com> | Tue Nov 04 20:51:29 2014 +0000 |
committer | Arnaud A. de Grandmaison <arnaud.degrandmaison@arm.com> | Tue Nov 04 20:51:29 2014 +0000 |
tree | bf03a2bf0aeb67eb8d5847ffa8aa65da378ef7f6 | |
parent | 8025a39d11d9308afa42d8e252ef23902fbd142d [diff] |
[PBQP] Callee saved regs should have a higher cost than scratch regs Registers are not all equal. Some are not allocatable (infinite cost), some have to be preserved but can be used, and some others are just free to use. Ensure there is a cost hierarchy reflecting this fact, so that the allocator will favor scratch registers over callee-saved registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221293 91177308-0d34-0410-b5e6-96231b3b80d8