[llvm] r194941 - Fix ndebug-build unused variable in loop rerolling
Hal Finkel
hfinkel at anl.gov
Sat Nov 16 17:21:54 PST 2013
Author: hfinkel
Date: Sat Nov 16 19:21:54 2013
New Revision: 194941
URL: http://llvm.org/viewvc/llvm-project?rev=194941&view=rev
Log:
Fix ndebug-build unused variable in loop rerolling
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopRerollPass.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopRerollPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopRerollPass.cpp?rev=194941&r1=194940&r2=194941&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopRerollPass.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopRerollPass.cpp Sat Nov 16 19:21:54 2013
@@ -276,7 +276,7 @@ protected:
int Idx = PossibleRedIdx[J1];
assert(Idx == PossibleRedIdx[J2] &&
"Recording pair from different reductions?");
- Reds.insert(PossibleRedIdx[J1]);
+ Reds.insert(Idx);
}
}
More information about the llvm-commits
mailing list