[RegisterBankInfo] Change the implementation for the default mapping.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 8 Apr 2016 16:59:50 +0000 (16:59 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 8 Apr 2016 16:59:50 +0000 (16:59 +0000)
commit88805c191777c0baaac8e2ece214aa7c1c09af85
tree9b538bd5d000645ec789993020e1b86559eb508e
parentb3de24f5e65c4bb170b45e2585ee878c540ba7ae
[RegisterBankInfo] Change the implementation for the default mapping.

Do not give that much importance to the current register bank of an
operand. This is likely just a side effect of the current execution and
it is properly wise to prefer a register bank that can be extracted from
the information available statically (like encoding constraints and
type).

llvm-svn: 265810
llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp