diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-21 14:17:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-21 14:17:46 +0000 |
commit | 7c58cf75facdadaf943cfbfeae9d3cfded4d3b7d (patch) | |
tree | b88fe8697906e6cb6e40216ea2c21797279fa520 /llvm/lib/CodeGen | |
parent | 1cae86f704cdbeeb8f4ef7a367852c4cff5bd289 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
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); |