Skip to content

Commit f6d00a7

Browse files
gergoerdidylanmckay
authored andcommitted
[AVR] Factor out mayLoad in tablegen patterns
Patch by Gergo Erdi. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314897 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d4274bd commit f6d00a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Target/AVR/AVRInstrInfo.td

+2-2
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,7 @@ def STDWPtrQRr : Pseudo<(outs),
14171417
// Load program memory operations.
14181418
let canFoldAsLoad = 1,
14191419
isReMaterializable = 1,
1420+
mayLoad = 1,
14201421
hasSideEffects = 0 in
14211422
{
14221423
let Defs = [R0],
@@ -1437,8 +1438,7 @@ hasSideEffects = 0 in
14371438
Requires<[HasLPMX]>;
14381439

14391440
// Load program memory, while postincrementing the Z register.
1440-
let mayLoad = 1,
1441-
Defs = [R31R30] in
1441+
let Defs = [R31R30] in
14421442
{
14431443
def LPMRdZPi : FLPMX<0,
14441444
1,

0 commit comments

Comments
 (0)