[llvm] 81b50a7 - [SelectionDAG] Remove repeated getOperand() call. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat May 30 02:23:31 PDT 2020


Author: Simon Pilgrim
Date: 2020-05-30T10:21:36+01:00
New Revision: 81b50a782375cb0c1a4541e6b5bac01c617fd20a

URL: https://github.com/llvm/llvm-project/commit/81b50a782375cb0c1a4541e6b5bac01c617fd20a
DIFF: https://github.com/llvm/llvm-project/commit/81b50a782375cb0c1a4541e6b5bac01c617fd20a.diff

LOG: [SelectionDAG] Remove repeated getOperand() call. NFC.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 0a108c95bd28..3cba91a11d42 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3546,7 +3546,7 @@ unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
         continue;
 
       SDValue SrcOp = Op.getOperand(i);
-      Tmp2 = ComputeNumSignBits(Op.getOperand(i), Depth + 1);
+      Tmp2 = ComputeNumSignBits(SrcOp, Depth + 1);
 
       // BUILD_VECTOR can implicitly truncate sources, we must handle this.
       if (SrcOp.getValueSizeInBits() != VTBits) {


        


More information about the llvm-commits mailing list