diff options
author | Jim Grosbach <grosbach@apple.com> | 2013-08-16 23:37:23 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2013-08-16 23:37:23 +0000 |
commit | d69f3ed9479c8ff6a95d88a81b196ea467b96a6f (patch) | |
tree | ada4a93c0c1b56eb50b51b717f8d8c520ed17b3a /llvm/lib/Target/ARM/ARMFastISel.cpp | |
parent | 2ec4d7ba07bb205b72320b37fd531703cb8e7753 (diff) | |
download | bcm5719-llvm-d69f3ed9479c8ff6a95d88a81b196ea467b96a6f.tar.gz bcm5719-llvm-d69f3ed9479c8ff6a95d88a81b196ea467b96a6f.zip |
ARM: Clean up fast-isel machine verifier errors.
Lots of machine verifier errors result from using a plain GPR regclass
for incoming argument copies. A more restrictive rGPR class is more
appropriate since it more accurately represents what's happening, plus
it lines up better with isel later on so the verifier is happier.
Reduces the number of ARM fast-isel tests not running with the verifier
enabled by over half.
rdar://12594152
llvm-svn: 188592
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index fc847b8b1f8..02ebe665151 100644 --- a/llvm/lib/Target/ARM/ARMFastISel.cpp +++ b/llvm/lib/Target/ARM/ARMFastISel.cpp @@ -3049,7 +3049,7 @@ bool ARMFastISel::FastLowerArguments() { ARM::R0, ARM::R1, ARM::R2, ARM::R3 }; - const TargetRegisterClass *RC = TLI.getRegClassFor(MVT::i32); + const TargetRegisterClass *RC = &ARM::rGPRRegClass; Idx = 0; for (Function::const_arg_iterator I = F->arg_begin(), E = F->arg_end(); I != E; ++I, ++Idx) { |