mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 04:09:04 +00:00
[ARM] GlobalISel: Remove dead instruction selection code
We can now generate code for selecting G_ADD, G_SUB and G_MUL. Remove the hand-written versions. llvm-svn: 303247
This commit is contained in:
parent
e286942bf0
commit
3d8f958ec4
@ -345,25 +345,10 @@ bool ARMInstructionSelector::select(MachineInstr &I) const {
|
||||
I.setDesc(TII.get(COPY));
|
||||
return selectCopy(I, TII, MRI, TRI, RBI);
|
||||
}
|
||||
case G_ADD:
|
||||
case G_GEP:
|
||||
I.setDesc(TII.get(ARM::ADDrr));
|
||||
MIB.add(predOps(ARMCC::AL)).add(condCodeOp());
|
||||
break;
|
||||
case G_SUB:
|
||||
I.setDesc(TII.get(ARM::SUBrr));
|
||||
MIB.add(predOps(ARMCC::AL)).add(condCodeOp());
|
||||
break;
|
||||
case G_MUL:
|
||||
if (TII.getSubtarget().hasV6Ops()) {
|
||||
I.setDesc(TII.get(ARM::MUL));
|
||||
} else {
|
||||
assert(TII.getSubtarget().useMulOps() && "Unsupported target");
|
||||
I.setDesc(TII.get(ARM::MULv5));
|
||||
MIB->getOperand(0).setIsEarlyClobber(true);
|
||||
}
|
||||
MIB.add(predOps(ARMCC::AL)).add(condCodeOp());
|
||||
break;
|
||||
case G_FRAME_INDEX:
|
||||
// Add 0 to the given frame index and hope it will eventually be folded into
|
||||
// the user(s).
|
||||
|
Loading…
x
Reference in New Issue
Block a user