Use the incoming VT not the VT of where we're trying to store to determine

if we can store a value. Also, the exclusion is or, not and.

Fixes rdar://8920247.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2011-01-27 05:44:56 +00:00
parent 40ccb798cc
commit 4a2b316762

View File

@ -1437,8 +1437,8 @@ bool ARMFastISel::ProcessCallArgs(SmallVectorImpl<Value*> &Args,
unsigned Arg = ArgRegs[VA.getValNo()]; unsigned Arg = ArgRegs[VA.getValNo()];
MVT ArgVT = ArgVTs[VA.getValNo()]; MVT ArgVT = ArgVTs[VA.getValNo()];
// We don't handle NEON parameters yet. // We don't handle NEON/vector parameters yet.
if (VA.getLocVT().isVector() && VA.getLocVT().getSizeInBits() > 64) if (ArgVT.isVector() || ArgVT.getSizeInBits() > 64)
return false; return false;
// Handle arg promotion, etc. // Handle arg promotion, etc.