[PATCH] D115618: [AVR] Optimize int16 airthmetic right shift for shift amount 7/14/15

Ayke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 25 07:28:01 PDT 2022


aykevl accepted this revision.
aykevl added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp:1848
+  buildMI(MBB, MBBI, AVR::MOVRdRr)
+      .addReg(DstLoReg, RegState::Define)
+      .addReg(DstHiReg);
----------------
You could use the following instead, which is a bit shorter (but has the same effect):

```
buildMI(MBB, MBBI, AVR::MOVRdRr, DstLoReg)
  .addReg(DstHiReg);
```

(The same change can be applied in other places in this patch).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115618/new/

https://reviews.llvm.org/D115618



More information about the llvm-commits mailing list