OSDN Git Service

Fix signed/unsigned gcc warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 Dec 2017 16:04:57 +0000 (16:04 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 Dec 2017 16:04:57 +0000 (16:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320253 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp

index 835b088..26bceff 100644 (file)
@@ -501,7 +501,7 @@ bool ReverseDeltaNetwork::route(ElemType *P, RowType *T, unsigned Size,
 
   // Reorder the working permutation according to the computed switch table
   // for the last step (i.e. Pets).
-  for (ElemType J = 0; J != Size/2; ++J) {
+  for (ElemType J = 0, E = Size / 2; J != E; ++J) {
     ElemType PJ = P[J];         // Current values of P[J]
     ElemType PC = P[J+Size/2];  // and P[conj(J)]
     ElemType QJ = PJ;           // New values of P[J]