[llvm] 3f68261 - [DAG] Remover getOperand() call. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 03:19:11 PDT 2020


Author: Simon Pilgrim
Date: 2020-09-16T11:18:58+01:00
New Revision: 3f682611ab26442fb2a5fd49f44c6f032150a2e6

URL: https://github.com/llvm/llvm-project/commit/3f682611ab26442fb2a5fd49f44c6f032150a2e6
DIFF: https://github.com/llvm/llvm-project/commit/3f682611ab26442fb2a5fd49f44c6f032150a2e6.diff

LOG: [DAG] Remover getOperand() call. NFCI.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 909698ded4ed..9109aca88028 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -10213,7 +10213,7 @@ SDValue DAGCombiner::visitSIGN_EXTEND(SDNode *N) {
     SDValue N00 = N0.getOperand(0);
     SDValue N01 = N0.getOperand(1);
     ISD::CondCode CC = cast<CondCodeSDNode>(N0.getOperand(2))->get();
-    EVT N00VT = N0.getOperand(0).getValueType();
+    EVT N00VT = N00.getValueType();
 
     // sext(setcc) -> sext_in_reg(vsetcc) for vectors.
     // Only do this before legalize for now.


        


More information about the llvm-commits mailing list