[llvm-commits] [llvm] r109643 - in /llvm/trunk: include/llvm/Instructions.h lib/AsmParser/LLParser.cpp lib/Transforms/InstCombine/InstCombineCalls.cpp lib/VMCore/Instructions.cpp test/Assembler/align-inst-alloca.ll test/Assembler/align-inst-load.
Eli Friedman
eli.friedman at gmail.com
Wed Jul 28 15:25:12 PDT 2010
On Wed, Jul 28, 2010 at 1:12 PM, Dan Gohman <gohman at apple.com> wrote:
> @@ -104,11 +104,15 @@
> ComputeMaskedBits(V, Mask, KnownZero, KnownOne);
> unsigned TrailZ = KnownZero.countTrailingOnes();
>
> - // LLVM doesn't support alignments larger than this currently.
> + // Avoid trouble with rediculously large TrailZ values, such as
> + // those computed from a null pointer.
> TrailZ = std::min(TrailZ, unsigned(sizeof(unsigned) * CHAR_BIT - 1));
Spelling.
-Eli
More information about the llvm-commits
mailing list