summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-21 14:17:46 +0000
committerDan Gohman <gohman@apple.com>2010-06-21 14:17:46 +0000
commit7c58cf75facdadaf943cfbfeae9d3cfded4d3b7d (patch)
treeb88fe8697906e6cb6e40216ea2c21797279fa520 /llvm/lib/CodeGen/SelectionDAG
parent1cae86f704cdbeeb8f4ef7a367852c4cff5bd289 (diff)
downloadbcm5719-llvm-7c58cf75facdadaf943cfbfeae9d3cfded4d3b7d.tar.gz
bcm5719-llvm-7c58cf75facdadaf943cfbfeae9d3cfded4d3b7d.zip
Generalize this to look in the regular ValueMap in addition to
the LocalValueMap, to make it more flexible when fast-isel isn't proceding straight top-down. llvm-svn: 106414
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index d21ba233e9a..58d8344479c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -162,7 +162,7 @@ unsigned FastISel::materializeRegForValue(const Value *V, MVT VT) {
}
} else if (const Operator *Op = dyn_cast<Operator>(V)) {
if (!SelectOperator(Op, Op->getOpcode())) return 0;
- Reg = LocalValueMap[Op];
+ Reg = lookUpRegForValue(Op);
} else if (isa<UndefValue>(V)) {
Reg = createResultReg(TLI.getRegClassFor(VT));
BuildMI(MBB, DL, TII.get(TargetOpcode::IMPLICIT_DEF), Reg);
OpenPOWER on IntegriCloud