Skip to content

Commit 6a395fe

Browse files
authored
[AArch64] Mark FMOVvXfY_ns as rematerializable, cheap (#169186)
1 parent 17852de commit 6a395fe

File tree

2 files changed

+196
-0
lines changed

2 files changed

+196
-0
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8381,6 +8381,7 @@ def : InstAlias<"orr.4s $Vd, $imm", (ORRv4i32 V128:$Vd, imm0_255:$imm, 0)>;
83818381
}
83828382

83838383
// AdvSIMD FMOV
8384+
let isReMaterializable = 1, isAsCheapAsAMove = 1 in {
83848385
def FMOVv2f64_ns : SIMDModifiedImmVectorNoShift<1, 1, 0, 0b1111, V128, fpimm8,
83858386
"fmov", ".2d",
83868387
[(set (v2f64 V128:$Rd), (AArch64fmov imm0_255:$imm8))]>;
@@ -8398,6 +8399,7 @@ def FMOVv8f16_ns : SIMDModifiedImmVectorNoShift<1, 0, 1, 0b1111, V128, fpimm8,
83988399
"fmov", ".8h",
83998400
[(set (v8f16 V128:$Rd), (AArch64fmov imm0_255:$imm8))]>;
84008401
} // Predicates = [HasNEON, HasFullFP16]
8402+
}
84018403

84028404
// AdvSIMD MOVI
84038405

0 commit comments

Comments
 (0)