Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 7752b4e

Browse files
committed
Remove some redundant variables from X86TargetLowering::LowerDYNAMIC_STACKALLOC
These are already defined, with the same values, a few lines up. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265845 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 31fe4c9 commit 7752b4e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Target/X86/X86ISelLowering.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16777,12 +16777,9 @@ X86TargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
1677716777
unsigned SPReg = TLI.getStackPointerRegisterToSaveRestore();
1677816778
assert(SPReg && "Target cannot require DYNAMIC_STACKALLOC expansion and"
1677916779
" not tell us which reg is the stack pointer!");
16780-
EVT VT = Node->getValueType(0);
16781-
SDValue Tmp3 = Node->getOperand(2);
1678216780

1678316781
SDValue SP = DAG.getCopyFromReg(Chain, dl, SPReg, VT);
1678416782
Chain = SP.getValue(1);
16785-
unsigned Align = cast<ConstantSDNode>(Tmp3)->getZExtValue();
1678616783
const TargetFrameLowering &TFI = *Subtarget.getFrameLowering();
1678716784
unsigned StackAlign = TFI.getStackAlignment();
1678816785
Result = DAG.getNode(ISD::SUB, dl, VT, SP, Size); // Value

0 commit comments

Comments
 (0)