mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 01:43:06 +00:00
[arm fast-isel] Appease the machine verifier by using the proper register
classes. For my test case the number of errors drop from 356 to 21. Part of rdar://12594152 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dccd7f9187
commit
6aa6e5a285
@ -619,7 +619,10 @@ unsigned ARMFastISel::ARMMaterializeGV(const GlobalValue *GV, EVT VT) {
|
||||
|
||||
Reloc::Model RelocM = TM.getRelocationModel();
|
||||
bool IsIndirect = Subtarget->GVIsIndirectSymbol(GV, RelocM);
|
||||
unsigned DestReg = createResultReg(TLI.getRegClassFor(VT));
|
||||
const TargetRegisterClass *RC = isThumb2 ?
|
||||
(const TargetRegisterClass*)&ARM::rGPRRegClass :
|
||||
(const TargetRegisterClass*)&ARM::GPRRegClass;
|
||||
unsigned DestReg = createResultReg(RC);
|
||||
|
||||
// Use movw+movt when possible, it avoids constant pool entries.
|
||||
// Darwin targets don't support movt with Reloc::Static, see
|
||||
|
Loading…
Reference in New Issue
Block a user