Skip to content

Commit bf1d7b8

Browse files
committed
[RISCV] Give HWASAN_CHECK_MEMACCESS_SHORTGRANULES pseudo the same code size as PseudoCall.
This is converted to a PseudoCall in RISCVAsmPrinter.cpp so it should have the same size of 8 bytes.
1 parent 56954a5 commit bf1d7b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,7 @@ def : Pat<(trap), (UNIMP)>;
18611861
def : Pat<(debugtrap), (EBREAK)>;
18621862

18631863
let Predicates = [IsRV64], Uses = [X5],
1864-
Defs = [X1, X6, X7, X28, X29, X30, X31] in
1864+
Defs = [X1, X6, X7, X28, X29, X30, X31], Size = 8 in
18651865
def HWASAN_CHECK_MEMACCESS_SHORTGRANULES
18661866
: Pseudo<(outs), (ins GPRJALR:$ptr, i32imm:$accessinfo),
18671867
[(int_hwasan_check_memaccess_shortgranules (i64 X5), GPRJALR:$ptr,

0 commit comments

Comments
 (0)