Skip to content

Commit a3fc0f9

Browse files
committed
[AMDGPU] Add comments on SITargetLowering::widenLoad
1 parent 15311d5 commit a3fc0f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9884,6 +9884,8 @@ static SDValue getLoadExtOrTrunc(SelectionDAG &DAG,
98849884
llvm_unreachable("invalid ext type");
98859885
}
98869886

9887+
// Try to turn 8 and 16-bit scalar loads into SMEM eligible 32-bit loads.
9888+
// TODO: Skip this on GFX12 which does have scalar sub-dword loads.
98879889
SDValue SITargetLowering::widenLoad(LoadSDNode *Ld, DAGCombinerInfo &DCI) const {
98889890
SelectionDAG &DAG = DCI.DAG;
98899891
if (Ld->getAlign() < Align(4) || Ld->isDivergent())

0 commit comments

Comments
 (0)