summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-01 02:44:23 +0000
committerDan Gohman <gohman@apple.com>2010-05-01 02:44:23 +0000
commitec74444d3e8e5dcb47843f9131cc4f52d7ec3edc (patch)
tree9fddc6b9c470ca0155f5b236d09e5ce548a5e88b /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
parenteffa3e56895f03737a83dfe5904de36deaa391e1 (diff)
downloadbcm5719-llvm-ec74444d3e8e5dcb47843f9131cc4f52d7ec3edc.tar.gz
bcm5719-llvm-ec74444d3e8e5dcb47843f9131cc4f52d7ec3edc.zip
Remove the code for special-casing byval for fast-isel. SelectionDAG
handles argument lowering anyway, so there's no need for special casing here. llvm-svn: 102828
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index fe5937e1a4d..65c36c1289d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -59,9 +59,7 @@ static bool isUsedOutsideOfDefiningBlock(const Instruction *I) {
static bool isOnlyUsedInEntryBlock(const Argument *A, bool EnableFastISel) {
// With FastISel active, we may be splitting blocks, so force creation
// of virtual registers for all non-dead arguments.
- // Don't force virtual registers for byval arguments though, because
- // fast-isel can't handle those in all cases.
- if (EnableFastISel && !A->hasByValAttr())
+ if (EnableFastISel)
return A->use_empty();
const BasicBlock *Entry = A->getParent()->begin();
OpenPOWER on IntegriCloud