llvm.org GIT mirror llvm / c2b55b1
Revert "[ARM] GlobalISel: Remove dead instruction selection code" This reverts commit r303247 because the tests are failing on some bots. Sorry! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303249 91177308-0d34-0410-b5e6-96231b3b80d8 Diana Picus 3 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
344344 I.setDesc(TII.get(COPY));
345345 return selectCopy(I, TII, MRI, TRI, RBI);
346346 }
347 case G_ADD:
347348 case G_GEP:
348349 I.setDesc(TII.get(ARM::ADDrr));
350 MIB.add(predOps(ARMCC::AL)).add(condCodeOp());
351 break;
352 case G_SUB:
353 I.setDesc(TII.get(ARM::SUBrr));
354 MIB.add(predOps(ARMCC::AL)).add(condCodeOp());
355 break;
356 case G_MUL:
357 if (TII.getSubtarget().hasV6Ops()) {
358 I.setDesc(TII.get(ARM::MUL));
359 } else {
360 assert(TII.getSubtarget().useMulOps() && "Unsupported target");
361 I.setDesc(TII.get(ARM::MULv5));
362 MIB->getOperand(0).setIsEarlyClobber(true);
363 }
349364 MIB.add(predOps(ARMCC::AL)).add(condCodeOp());
350365 break;
351366 case G_FRAME_INDEX: