OSDN Git Service

[RegisterBankInfo] Adapt the copy cost logic to give something sane by default.
authorQuentin Colombet <qcolombet@apple.com>
Wed, 8 Jun 2016 01:17:10 +0000 (01:17 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 8 Jun 2016 01:17:10 +0000 (01:17 +0000)
commit178ae081fb6c1cf8393e80755dac941defbfc6a4
tree559ac2635155de3d17a114eeb55c6b0aa19b878c
parentedb4f7c12a2606f2949b40cec7ec096745d58ad0
[RegisterBankInfo] Adapt the copy cost logic to give something sane by default.

The generic implementation stated that all copies were free, which is
unlikely. Now, only the copies within the same register bank are free.
We assume they will get coalesced.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272085 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h