Skip to content

Commit 9edb886

Browse files
committed
[RISCV] Mark FLH as canFoldAsLoad.
1 parent b512188 commit 9edb886

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ defvar ZfhminDExts = [ZfhminDExt, ZhinxminZdinxExt, ZhinxminZdinx32Ext];
9090
//===----------------------------------------------------------------------===//
9191

9292
let Predicates = [HasHalfFPLoadStoreMove] in {
93+
let canFoldAsLoad = 1 in
9394
def FLH : FPLoad_r<0b001, "flh", FPR16, WriteFLD16>;
9495

9596
// Operands for stores are in the order srcreg, base, offset rather than

llvm/test/CodeGen/RISCV/rv64-stackmap-fp.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
; Functions and stack size
1717
; CHECK-NEXT: .quad liveArgs
18-
; CHECK-NEXT: .quad 16
18+
; CHECK-NEXT: .quad 0
1919
; CHECK-NEXT: .quad 1
2020

2121
; Spilled stack map values.

0 commit comments

Comments
 (0)