diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-07 20:40:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-07 20:40:11 +0000 |
commit | 4fd552880c9f42f117bd79929ea0179f99bd6bb7 (patch) | |
tree | 3a0b16083dbbee41250f7c49651d681fa263756e /lib/CodeGen/SelectionDAG | |
parent | 30eae3c02244e18747f9f0dca6946d86d0ccb7f5 (diff) | |
download | external_llvm-4fd552880c9f42f117bd79929ea0179f99bd6bb7.zip external_llvm-4fd552880c9f42f117bd79929ea0179f99bd6bb7.tar.gz external_llvm-4fd552880c9f42f117bd79929ea0179f99bd6bb7.tar.bz2 |
Don't attempt to handle aggregate argument values in FastISel; let
SelectionDAG do those. This fixes PR3955.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 6f09f79..eefe8a2 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -57,11 +57,15 @@ using namespace llvm; unsigned FastISel::getRegForValue(Value *V) { - MVT::SimpleValueType VT = TLI.getValueType(V->getType()).getSimpleVT(); + MVT RealVT = TLI.getValueType(V->getType(), /*AllowUnknown=*/true); + // Don't handle non-simple values in FastISel. + if (!RealVT.isSimple()) + return 0; // Ignore illegal types. We must do this before looking up the value // in ValueMap because Arguments are given virtual registers regardless // of whether FastISel can handle them. + MVT::SimpleValueType VT = RealVT.getSimpleVT(); if (!TLI.isTypeLegal(VT)) { // Promote MVT::i1 to a legal type though, because it's common and easy. if (VT == MVT::i1) |