[llvm] r237719 - use 'auto *' for pointers; clearer usage, no deep copying
Sanjay Patel
spatel at rotateright.com
Tue May 19 13:10:16 PDT 2015
Author: spatel
Date: Tue May 19 15:10:16 2015
New Revision: 237719
URL: http://llvm.org/viewvc/llvm-project?rev=237719&view=rev
Log:
use 'auto *' for pointers; clearer usage, no deep copying
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=237719&r1=237718&r2=237719&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Tue May 19 15:10:16 2015
@@ -8280,7 +8280,7 @@ SDValue DAGCombiner::visitFDIV(SDNode *N
SmallVector<SDNode *, 4> Users;
// Find all FDIV users of the same divisor.
- for (auto U : N1->uses()) {
+ for (auto *U : N1->uses()) {
if (U->getOpcode() == ISD::FDIV && U->getOperand(1) == N1)
Users.push_back(U);
}
@@ -8290,7 +8290,7 @@ SDValue DAGCombiner::visitFDIV(SDNode *N
SDValue Reciprocal = DAG.getNode(ISD::FDIV, DL, VT, FPOne, N1);
// Dividend / Divisor -> Dividend * Reciprocal
- for (auto U : Users) {
+ for (auto *U : Users) {
SDValue Dividend = U->getOperand(0);
if (Dividend != FPOne) {
SDValue NewNode = DAG.getNode(ISD::FMUL, SDLoc(U), VT, Dividend,
More information about the llvm-commits
mailing list