diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2012-10-24 00:38:25 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2012-10-24 00:38:25 +0000 |
commit | adf38913f815a2a453d4783e88b1528473b4740d (patch) | |
tree | 414c7d89b4cc989db59d5810b50fef592cb27a58 | |
parent | 30f57da439dc6313e8704dec09da0a3789060608 (diff) | |
download | external_llvm-adf38913f815a2a453d4783e88b1528473b4740d.zip external_llvm-adf38913f815a2a453d4783e88b1528473b4740d.tar.gz external_llvm-adf38913f815a2a453d4783e88b1528473b4740d.tar.bz2 |
Keep coding standard. Don't evaluate getNumOperands() every time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166531 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index e7fe908..da4e1ba 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -8434,7 +8434,7 @@ SDValue DAGCombiner::reduceBuildVecExtToExtBuildVec(SDNode *N) { SmallVector<SDValue, 8> Ops(NewBVElems, Filler); // Populate the new build_vector - for (unsigned i=0; i < N->getNumOperands(); ++i) { + for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i) { SDValue Cast = N->getOperand(i); assert((Cast.getOpcode() == ISD::ANY_EXTEND || Cast.getOpcode() == ISD::ZERO_EXTEND || |