Skip to content

Commit a4d6f75

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:5b7982f2b223 into amd-gfx:ee2d08d63842
Local branch amd-gfx ee2d08d Merged main:1438544e2364 into amd-gfx:33cd95d2c4a1 Remote branch main 5b7982f [RISCV] Fix SiFive7 formula for Reductions and ordered Reductions (llvm#65385)
2 parents ee2d08d + 5b7982f commit a4d6f75

File tree

4 files changed

+677
-6
lines changed

4 files changed

+677
-6
lines changed

libcxx/utils/ci/buildkite-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,8 +1119,8 @@ steps:
11191119
- "**/test-results.xml"
11201120
- "**/*.abilist"
11211121
env:
1122-
CC: "clang15"
1123-
CXX: "clang++15"
1122+
CC: "clang16"
1123+
CXX: "clang++16"
11241124
ENABLE_STD_MODULES: "Off"
11251125
agents:
11261126
queue: "libcxx-builders"

llvm/include/llvm/Config/llvm-config.h.cmake

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

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 473676
19+
#define LLVM_MAIN_REVISION 473678
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/lib/Target/RISCV/RISCVSchedSiFive7.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ class SiFive7GetReductionCycles<string mx, int sew> {
154154
!eq(mx, "MF8") : 1
155155
);
156156
int c = !add(
157-
!div(TwoTimesLMUL, DLEN),
157+
TwoTimesLMUL,
158158
!mul(5, !add(4, !logtwo(!div(DLEN, sew))))
159159
);
160160
}
161161

162-
/// Cycles for ordered reductions take approximatley 5*VL cycles
162+
/// Cycles for ordered reductions take approximatley 6*VL cycles
163163
class SiFive7GetOrderedReductionCycles<string mx, int sew> {
164164
defvar VLEN = 512;
165165
// (VLEN * LMUL) / SEW
@@ -172,7 +172,7 @@ class SiFive7GetOrderedReductionCycles<string mx, int sew> {
172172
!eq(mx, "MF4") : !div(!div(VLEN, 4), sew),
173173
!eq(mx, "MF8") : !div(!div(VLEN, 8), sew),
174174
);
175-
int c = !mul(5, VLUpperBound);
175+
int c = !mul(6, VLUpperBound);
176176
}
177177

178178
class SiFive7AnyToGPRBypass<SchedRead read, int cycles = 2>

0 commit comments

Comments
 (0)