mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Zap useless code; this hasn't done anything useful since fast-isel switched to being bottom-up (a very long time ago).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131329 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6765f78efb
commit
d25d16c901
@ -108,8 +108,6 @@ private:
|
|||||||
bool X86SelectFPExt(const Instruction *I);
|
bool X86SelectFPExt(const Instruction *I);
|
||||||
bool X86SelectFPTrunc(const Instruction *I);
|
bool X86SelectFPTrunc(const Instruction *I);
|
||||||
|
|
||||||
bool X86SelectExtractValue(const Instruction *I);
|
|
||||||
|
|
||||||
bool X86VisitIntrinsicCall(const IntrinsicInst &I);
|
bool X86VisitIntrinsicCall(const IntrinsicInst &I);
|
||||||
bool X86SelectCall(const Instruction *I);
|
bool X86SelectCall(const Instruction *I);
|
||||||
|
|
||||||
@ -1303,31 +1301,6 @@ bool X86FastISel::X86SelectTrunc(const Instruction *I) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool X86FastISel::X86SelectExtractValue(const Instruction *I) {
|
|
||||||
const ExtractValueInst *EI = cast<ExtractValueInst>(I);
|
|
||||||
const Value *Agg = EI->getAggregateOperand();
|
|
||||||
|
|
||||||
if (const IntrinsicInst *CI = dyn_cast<IntrinsicInst>(Agg)) {
|
|
||||||
switch (CI->getIntrinsicID()) {
|
|
||||||
default: break;
|
|
||||||
case Intrinsic::sadd_with_overflow:
|
|
||||||
case Intrinsic::uadd_with_overflow: {
|
|
||||||
// Cheat a little. We know that the registers for "add" and "seto" are
|
|
||||||
// allocated sequentially. However, we only keep track of the register
|
|
||||||
// for "add" in the value map. Use extractvalue's index to get the
|
|
||||||
// correct register for "seto".
|
|
||||||
unsigned OpReg = getRegForValue(Agg);
|
|
||||||
if (OpReg == 0)
|
|
||||||
return false;
|
|
||||||
UpdateValueMap(I, OpReg + *EI->idx_begin());
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool X86FastISel::TryEmitSmallMemcpy(X86AddressMode DestAM,
|
bool X86FastISel::TryEmitSmallMemcpy(X86AddressMode DestAM,
|
||||||
X86AddressMode SrcAM, uint64_t Len) {
|
X86AddressMode SrcAM, uint64_t Len) {
|
||||||
// Make sure we don't bloat code by inlining very large memcpy's.
|
// Make sure we don't bloat code by inlining very large memcpy's.
|
||||||
@ -1911,8 +1884,6 @@ X86FastISel::TargetSelectInstruction(const Instruction *I) {
|
|||||||
return X86SelectFPExt(I);
|
return X86SelectFPExt(I);
|
||||||
case Instruction::FPTrunc:
|
case Instruction::FPTrunc:
|
||||||
return X86SelectFPTrunc(I);
|
return X86SelectFPTrunc(I);
|
||||||
case Instruction::ExtractValue:
|
|
||||||
return X86SelectExtractValue(I);
|
|
||||||
case Instruction::IntToPtr: // Deliberate fall-through.
|
case Instruction::IntToPtr: // Deliberate fall-through.
|
||||||
case Instruction::PtrToInt: {
|
case Instruction::PtrToInt: {
|
||||||
EVT SrcVT = TLI.getValueType(I->getOperand(0)->getType());
|
EVT SrcVT = TLI.getValueType(I->getOperand(0)->getType());
|
||||||
|
Loading…
Reference in New Issue
Block a user