[llvm-commits] [llvm] r110112 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Dan Gohman
gohman at apple.com
Tue Aug 3 09:15:50 PDT 2010
Author: djg
Date: Tue Aug 3 11:15:50 2010
New Revision: 110112
URL: http://llvm.org/viewvc/llvm-project?rev=110112&view=rev
Log:
Use unary + instead of a separate local variable for working
around std::min vs static const friction.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=110112&r1=110111&r2=110112&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Tue Aug 3 11:15:50 2010
@@ -109,10 +109,9 @@
TrailZ = std::min(TrailZ, unsigned(sizeof(unsigned) * CHAR_BIT - 1));
unsigned Align = 1u << std::min(BitWidth - 1, TrailZ);
- unsigned MaxAlign = Value::MaximumAlignment;
// LLVM doesn't support alignments larger than this currently.
- Align = std::min(Align, MaxAlign);
+ Align = std::min(Align, +Value::MaximumAlignment);
if (PrefAlign > Align)
Align = EnforceKnownAlignment(V, Align, PrefAlign);
More information about the llvm-commits
mailing list