mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c2b3e00cdf
commit
37db6cdaea
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user