[PATCH] D141246: [AVR] Do not emit 'LPM Rd, Z' on devices without FeatureLPMX
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 8 20:13:08 PST 2023
benshi001 created this revision.
benshi001 added reviewers: aykevl, dylanmckay.
Herald added subscribers: Jim, hiraditya.
Herald added a project: All.
benshi001 requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Herald added a project: LLVM.
The 'LPM' instruction has three forms:
------------------------
| form | feature |
| ---------- | ------- |
| LPM | hasLPM |
| LPM Rd, Z | hasLPMX |
| LPM Rd, Z+ | hasLPMX |
|
------------------------
The second form is always selected in ISelDAGToDAG, even on devices
without FeatureLPMX. This patch emits "LPM + MOV" on devices with
only FeatureLPM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141246
Files:
llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp
llvm/lib/Target/AVR/AVRInstrInfo.td
llvm/test/CodeGen/AVR/elpm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141246.487269.patch
Type: text/x-patch
Size: 6840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230109/14a27713/attachment.bin>
More information about the llvm-commits
mailing list