Skip to content

Commit 7d1192d

Browse files
committed
Address comments
1 parent 8ac6052 commit 7d1192d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,8 @@ bool SPIRVInstructionSelector::selectWaveReadLaneAt(Register ResVReg,
20172017
.addUse(GR.getSPIRVTypeID(ResType))
20182018
.addUse(GR.getOrCreateConstInt(SPIRV::Scope::Subgroup, I, IntTy, TII))
20192019
.addUse(I.getOperand(2).getReg())
2020-
.addUse(I.getOperand(3).getReg());
2020+
.addUse(I.getOperand(3).getReg())
2021+
.constrainAllUses(TII, TRI, RBI);
20212022
}
20222023

20232024
bool SPIRVInstructionSelector::selectBitreverse(Register ResVReg,

llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WaveActiveAnyTrue.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
define i1 @test_wave_any(i1 %p1) {
1010
entry:
1111
; CHECK: %[[#param:]] = OpFunctionParameter %[[#bool]]
12-
; CHECK: %[[#ret:]] = OpGroupNonUniformAny %[[#bool]] %[[#scope]] %[[#param]]
12+
; CHECK: %{{.+}} = OpGroupNonUniformAny %[[#bool]] %[[#scope]] %[[#param]]
1313
%ret = call i1 @llvm.spv.wave.any(i1 %p1)
1414
ret i1 %ret
1515
}

0 commit comments

Comments
 (0)