mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user