Skip to content

Commit a9831b4

Browse files
committed
Update vcompress.vm to not write vstart with 0 upon completion
Vmcompress.vm requires vstart==0, so writing vstart with 0 is redundant. To do this, spin off VI_LOOP_END_BASE from VI_LOOP_END. VI_LOOP_END will contain VI_LOOP_END_BASE as well as a write of 0 to vstart. See #1623 for full discussion.
1 parent 002d273 commit a9831b4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

riscv/insns/vcompress_vm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ VI_GENERAL_LOOP_BASE
3030

3131
++pos;
3232
}
33-
VI_LOOP_END;
33+
VI_LOOP_END_BASE;

riscv/v_ext_macros.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,11 @@ static inline bool is_overlapped_widen(const int astart, int asize,
215215
VI_GENERAL_LOOP_BASE \
216216
VI_LOOP_ELEMENT_SKIP();
217217

218+
#define VI_LOOP_END_BASE \
219+
}
220+
218221
#define VI_LOOP_END \
219-
} \
222+
VI_LOOP_END_BASE \
220223
P.VU.vstart->write(0);
221224

222225
#define VI_LOOP_REDUCTION_END(x) \

0 commit comments

Comments
 (0)