diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-16 22:43:23 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-16 22:43:23 +0000 |
commit | aeb5e6677269d0834b494eb5a2374097ec863f12 (patch) | |
tree | 820587d89afe6aee3a60ae6aa7373dead1b3becc | |
parent | ecb072d840207ad647a7901b3aa3974f4b73ff46 (diff) | |
download | bcm5719-llvm-aeb5e6677269d0834b494eb5a2374097ec863f12.tar.gz bcm5719-llvm-aeb5e6677269d0834b494eb5a2374097ec863f12.zip |
Reapply r118917. With pseudo-instruction expansion moved to
a different pass, the complicated interaction between cmov expansion
and fast isel is no longer a concern.
llvm-svn: 119400
-rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index b938539a7f4..ee6643336fd 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -320,11 +320,11 @@ bool X86FastISel::X86SelectAddress(const Value *V, X86AddressMode &AM) { // Don't walk into other basic blocks; it's possible we haven't // visited them yet, so the instructions may not yet be assigned // virtual registers. - if (FuncInfo.MBBMap[I->getParent()] != FuncInfo.MBB) - return false; - - Opcode = I->getOpcode(); - U = I; + if (FuncInfo.StaticAllocaMap.count(static_cast<const AllocaInst *>(V)) || + FuncInfo.MBBMap[I->getParent()] == FuncInfo.MBB) { + Opcode = I->getOpcode(); + U = I; + } } else if (const ConstantExpr *C = dyn_cast<ConstantExpr>(V)) { Opcode = C->getOpcode(); U = C; |