diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-25 17:05:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-25 17:05:24 +0000 |
commit | 33134c4a75558288d663267c8991f6bd37a530af (patch) | |
tree | 3fea627a04867be8ca3b5efacd1e7435704933bb /lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | 4b052dc63d31e764b85d62c056bffe576d501ed4 (diff) |
FastISel support for debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index ac4a639ea3..b9f1aa4507 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -246,7 +246,9 @@ static bool isUsedOutsideOfDefiningBlock(Instruction *I) { static bool isOnlyUsedInEntryBlock(Argument *A, bool EnableFastISel) { // With FastISel active, we may be splitting blocks, so force creation // of virtual registers for all non-dead arguments. - if (EnableFastISel) + // Don't force virtual registers for byval arguments though, because + // fast-isel can't handle those in all cases. + if (EnableFastISel && !A->hasByValAttr()) return A->use_empty(); BasicBlock *Entry = A->getParent()->begin(); |