[llvm] r298916 - [SDAG] Minor cleanup of variable usage. NFC.

Nirav Dave via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 28 06:39:51 PDT 2017


Author: niravd
Date: Tue Mar 28 08:39:50 2017
New Revision: 298916

URL: http://llvm.org/viewvc/llvm-project?rev=298916&view=rev
Log:
[SDAG] Minor cleanup of variable usage. NFC.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=298916&r1=298915&r2=298916&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Tue Mar 28 08:39:50 2017
@@ -1148,9 +1148,9 @@ SDValue DAGCombiner::PromoteIntShiftOp(S
     bool Replace = false;
     SDValue N0 = Op.getOperand(0);
     if (Opc == ISD::SRA)
-      N0 = SExtPromoteOperand(Op.getOperand(0), PVT);
+      N0 = SExtPromoteOperand(N0, PVT);
     else if (Opc == ISD::SRL)
-      N0 = ZExtPromoteOperand(Op.getOperand(0), PVT);
+      N0 = ZExtPromoteOperand(N0, PVT);
     else
       N0 = PromoteOperand(N0, PVT, Replace);
     if (!N0.getNode())




More information about the llvm-commits mailing list