[llvm] r297015 - [DAG] fix formatting; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 07:27:58 PST 2017
Author: spatel
Date: Mon Mar 6 09:27:57 2017
New Revision: 297015
URL: http://llvm.org/viewvc/llvm-project?rev=297015&view=rev
Log:
[DAG] fix formatting; 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=297015&r1=297014&r2=297015&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Mon Mar 6 09:27:57 2017
@@ -2390,8 +2390,7 @@ SDValue DAGCombiner::visitSDIV(SDNode *N
return N0;
// fold (sdiv X, -1) -> 0-X
if (N1C && N1C->isAllOnesValue())
- return DAG.getNode(ISD::SUB, DL, VT,
- DAG.getConstant(0, DL, VT), N0);
+ return DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, DL, VT), N0);
if (SDValue NewSel = foldBinOpIntoSelect(N))
return NewSel;
More information about the llvm-commits
mailing list