[llvm] r320253 - Fix signed/unsigned gcc warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 9 08:04:57 PST 2017
Author: rksimon
Date: Sat Dec 9 08:04:57 2017
New Revision: 320253
URL: http://llvm.org/viewvc/llvm-project?rev=320253&view=rev
Log:
Fix signed/unsigned gcc warning. NFCI.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp?rev=320253&r1=320252&r2=320253&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp Sat Dec 9 08:04:57 2017
@@ -501,7 +501,7 @@ bool ReverseDeltaNetwork::route(ElemType
// 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]
More information about the llvm-commits
mailing list