diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-01 02:44:23 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-01 02:44:23 +0000 |
commit | d725f04ff81db0e61baa153bf21ca2dd08838244 (patch) | |
tree | 0aff8274b525470d6892c4ec7fc5345a14ef7742 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 4781e30b7ba4e1830b4deb5f47498627ca9b89dc (diff) | |
download | external_llvm-d725f04ff81db0e61baa153bf21ca2dd08838244.zip external_llvm-d725f04ff81db0e61baa153bf21ca2dd08838244.tar.gz external_llvm-d725f04ff81db0e61baa153bf21ca2dd08838244.tar.bz2 |
Remove the code for special-casing byval for fast-isel. SelectionDAG
handles argument lowering anyway, so there's no need for special
casing here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 4fc2805..f48fdfc 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -732,31 +732,15 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) { BasicBlock::const_iterator BI = Begin; // Lower any arguments needed in this block if this is the entry block. - bool SuppressFastISel = false; - if (LLVMBB == &Fn.getEntryBlock()) { + if (LLVMBB == &Fn.getEntryBlock()) LowerArguments(LLVMBB); - // If any of the arguments has the byval attribute, forgo - // fast-isel in the entry block. - if (FastIS) { - unsigned j = 1; - for (Function::const_arg_iterator I = Fn.arg_begin(), E = Fn.arg_end(); - I != E; ++I, ++j) - if (Fn.paramHasAttr(j, Attribute::ByVal)) { - if (EnableFastISelVerbose || EnableFastISelAbort) - dbgs() << "FastISel skips entry block due to byval argument\n"; - SuppressFastISel = true; - break; - } - } - } - // Setup an EH landing-pad block. if (BB->isLandingPad()) PrepareEHLandingPad(BB); // Before doing SelectionDAG ISel, see if FastISel has been requested. - if (FastIS && !SuppressFastISel) { + if (FastIS) { // Emit code for any incoming arguments. This must happen before // beginning FastISel on the entry block. if (LLVMBB == &Fn.getEntryBlock()) { |