[llvm-commits] [llvm] r144721 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Nadav Rotem
nadav.rotem at intel.com
Tue Nov 15 14:54:21 PST 2011
Author: nadav
Date: Tue Nov 15 16:54:21 2011
New Revision: 144721
URL: http://llvm.org/viewvc/llvm-project?rev=144721&view=rev
Log:
Fix MSVC warnings by adding a cast.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=144721&r1=144720&r2=144721&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Tue Nov 15 16:54:21 2011
@@ -3827,8 +3827,8 @@
// Remove any extra phis created by processing inner loops.
SmallVector<WeakVH, 16> DeadInsts;
SCEVExpander Rewriter(SE, "lsr");
- Changed |= Rewriter.replaceCongruentIVs(L, &DT, DeadInsts);
- Changed |= DeleteTriviallyDeadInstructions(DeadInsts);
+ Changed |= (bool)Rewriter.replaceCongruentIVs(L, &DT, DeadInsts);
+ Changed |= (bool)DeleteTriviallyDeadInstructions(DeadInsts);
}
DEBUG(dbgs() << "LSR skipping outer loop " << *L << "\n");
return;
@@ -3880,8 +3880,8 @@
// Remove any extra phis created by processing inner loops.
SmallVector<WeakVH, 16> DeadInsts;
SCEVExpander Rewriter(SE, "lsr");
- Changed |= Rewriter.replaceCongruentIVs(L, &DT, DeadInsts);
- Changed |= DeleteTriviallyDeadInstructions(DeadInsts);
+ Changed |= (bool)Rewriter.replaceCongruentIVs(L, &DT, DeadInsts);
+ Changed |= (bool)DeleteTriviallyDeadInstructions(DeadInsts);
}
}
More information about the llvm-commits
mailing list