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 | 0673379712100110c213a0e7610b73b6c706e83d (patch) | |
tree | ff488a986479cd28198f8807b4e2e0975e8795d1 /lib/Target/ARM | |
parent | 70360e67624b5897490de29b51b1b616afcb8f5e (diff) | |
download | external_llvm-0673379712100110c213a0e7610b73b6c706e83d.zip external_llvm-0673379712100110c213a0e7610b73b6c706e83d.tar.gz external_llvm-0673379712100110c213a0e7610b73b6c706e83d.tar.bz2 |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index fc847b8..02ebe66 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/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) { |