[llvm] 031a7ad - [NFC] Fix erroneous indentation.

Amaury Séchet via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 05:30:38 PDT 2022


Author: Amaury Séchet
Date: 2022-09-30T12:30:27Z
New Revision: 031a7ad5753b210e9e30659e5bdc82a7e98f7406

URL: https://github.com/llvm/llvm-project/commit/031a7ad5753b210e9e30659e5bdc82a7e98f7406
DIFF: https://github.com/llvm/llvm-project/commit/031a7ad5753b210e9e30659e5bdc82a7e98f7406.diff

LOG: [NFC] Fix erroneous indentation.

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 d6190ad3f12a..07d5bfaa31e2 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -10293,12 +10293,12 @@ SDValue DAGCombiner::foldSelectOfConstants(SDNode *N) {
       return NotCond;
     }
 
-      // select Cond, 0, -1 --> sext (!Cond)
-      if (C1->isZero() && C2->isAllOnes()) {
-        SDValue NotCond = DAG.getNOT(DL, Cond, MVT::i1);
-        NotCond = DAG.getSExtOrTrunc(NotCond, DL, VT);
-        return NotCond;
-      }
+    // select Cond, 0, -1 --> sext (!Cond)
+    if (C1->isZero() && C2->isAllOnes()) {
+      SDValue NotCond = DAG.getNOT(DL, Cond, MVT::i1);
+      NotCond = DAG.getSExtOrTrunc(NotCond, DL, VT);
+      return NotCond;
+    }
 
     // Use a target hook because some targets may prefer to transform in the
     // other direction.


        


More information about the llvm-commits mailing list