Skip to content

Commit ce257c7

Browse files
committed
Review comments
1 parent a4519a8 commit ce257c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4034,7 +4034,7 @@ SDValue SITargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
40344034
// pointer when other instructions are using the stack.
40354035
Chain = DAG.getCALLSEQ_START(Chain, 0, 0, dl);
40364036

4037-
SDValue Size = Op.getValue(1).getOperand(1);
4037+
SDValue Size = Op.getOperand(1);
40384038
SDValue BaseAddr = DAG.getCopyFromReg(Chain, dl, SPReg, VT);
40394039
Align Alignment = cast<ConstantSDNode>(Op.getOperand(2))->getAlignValue();
40404040

@@ -4056,7 +4056,7 @@ SDValue SITargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
40564056

40574057
assert(Size.getValueType() == MVT::i32 && "Size must be 32-bit");
40584058
SDValue NewSP;
4059-
if (isa<ConstantSDNode>(Op.getOperand(1))) {
4059+
if (isa<ConstantSDNode>(Size)) {
40604060
// For constant sized alloca, scale alloca size by wave-size
40614061
SDValue ScaledSize = DAG.getNode(
40624062
ISD::SHL, dl, VT, Size,

0 commit comments

Comments
 (0)