mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Enable on-demand fast-isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -161,7 +161,10 @@ unsigned FastISel::materializeRegForValue(const Value *V, MVT VT) {
|
||||
}
|
||||
}
|
||||
} else if (const Operator *Op = dyn_cast<Operator>(V)) {
|
||||
if (!SelectOperator(Op, Op->getOpcode())) return 0;
|
||||
if (!SelectOperator(Op, Op->getOpcode()))
|
||||
if (!isa<Instruction>(Op) ||
|
||||
!TargetSelectInstruction(cast<Instruction>(Op)))
|
||||
return 0;
|
||||
Reg = lookUpRegForValue(Op);
|
||||
} else if (isa<UndefValue>(V)) {
|
||||
Reg = createResultReg(TLI.getRegClassFor(VT));
|
||||
|
||||
Reference in New Issue
Block a user