From ec74444d3e8e5dcb47843f9131cc4f52d7ec3edc Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 1 May 2010 02:44:23 +0000 Subject: 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 --- llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index fe5937e..65c36c1 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(); -- cgit v1.1