Skip to content

Commit 14b70ce

Browse files
committed
Minor bug fix and revision
Signed-off-by: Mohammadreza Ameri Mahabadian <[email protected]>
1 parent 936435e commit 14b70ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/lib/Dialect/SPIRV/Transforms/ConversionToReplicatedConstantCompositePass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace mlir;
2828

2929
namespace {
3030

31-
Attribute getSplatAttribute(Attribute valueAttr, uint32_t splatCount) {
31+
Attribute getSplatAttribute(Attribute valueAttr, uint32_t &splatCount) {
3232
Attribute attr;
3333
if (auto denseAttr = dyn_cast<DenseElementsAttr>(valueAttr)) {
3434
if (denseAttr.isSplat()) {

mlir/test/Dialect/SPIRV/Transforms/replicated-const-composites.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ spirv.module Logical GLSL450 {
160160

161161
// -----
162162

163-
spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, ReplicatedCompositesEXT], [SPV_EXT_replicated_composites]> {
163+
spirv.module Logical GLSL450 {
164164

165165
spirv.SpecConstant @sc_i32_1 = 1 : i32
166166

0 commit comments

Comments
 (0)