summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-16 22:43:23 +0000
committerDan Gohman <gohman@apple.com>2010-11-16 22:43:23 +0000
commitaeb5e6677269d0834b494eb5a2374097ec863f12 (patch)
tree820587d89afe6aee3a60ae6aa7373dead1b3becc /llvm/lib/Target/X86
parentecb072d840207ad647a7901b3aa3974f4b73ff46 (diff)
downloadbcm5719-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
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp10
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;
OpenPOWER on IntegriCloud