Skip to content

Commit 39babbf

Browse files
authored
[AMDGPU] Implement isSDNodeAlwaysUniform for INTRINSIC_W_CHAIN (#110114)
There are no always uniform side-effecting intrinsics upstream to test this with, but we have examples downstream.
1 parent b9f09a4 commit 39babbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,10 @@ bool AMDGPUTargetLowering::isSDNodeAlwaysUniform(const SDNode *N) const {
900900
unsigned IntrID = N->getConstantOperandVal(0);
901901
return AMDGPU::isIntrinsicAlwaysUniform(IntrID);
902902
}
903+
case ISD::INTRINSIC_W_CHAIN: {
904+
unsigned IntrID = N->getConstantOperandVal(1);
905+
return AMDGPU::isIntrinsicAlwaysUniform(IntrID);
906+
}
903907
case ISD::LOAD:
904908
if (cast<LoadSDNode>(N)->getMemOperand()->getAddrSpace() ==
905909
AMDGPUAS::CONSTANT_ADDRESS_32BIT)

0 commit comments

Comments
 (0)