[FastISel][ARM] Fix a bug in the integer materialization code.
authorJuergen Ributzka <juergen@apple.com>
Wed, 13 Aug 2014 21:39:18 +0000 (21:39 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 13 Aug 2014 21:39:18 +0000 (21:39 +0000)
commitc76c3fe5cf36176e776eed9a6d6801cfd613918d
tree4986a4a09287d0d82ff4fb36e89a4d2b05e29834
parenteac0bae1e8591e2af47bc275453be610bd9b88ac
[FastISel][ARM] Fix a bug in the integer materialization code.

getRegClassFor returns the incorrect register class when in Thumb2 mode.
This fix simply manually selects the register class as in the code just a few
lines above.

There is no test case for this code, because the code is currently
unreachable. This will be changed in a future commit and existing test
cases will exercise this code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215583 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFastISel.cpp