summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2017-03-28 13:39:50 +0000
committerNirav Dave <niravd@google.com>2017-03-28 13:39:50 +0000
commit423b24ae765360b4c98b53f3cd480011ce551f61 (patch)
treead484e4a01f00272506192d4cac3b3340b18285c /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parentcece72aa04030e88eebe5ef6a0f25760bb0747e4 (diff)
downloadbcm5719-llvm-423b24ae765360b4c98b53f3cd480011ce551f61.tar.gz
bcm5719-llvm-423b24ae765360b4c98b53f3cd480011ce551f61.zip
[SDAG] Minor cleanup of variable usage. NFC.
llvm-svn: 298916
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index d527a0e15af..2263ddc5647 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1148,9 +1148,9 @@ SDValue DAGCombiner::PromoteIntShiftOp(SDValue Op) {
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())
OpenPOWER on IntegriCloud