[llvm-commits] [llvm] r164784 - in /llvm/trunk: lib/Transforms/Utils/SimplifyCFG.cpp test/Transforms/SimplifyCFG/switch_to_lookup_table.ll

Hans Wennborg hans at chromium.org
Wed Oct 3 03:35:26 PDT 2012


On Thu, Sep 27, 2012 at 7:29 PM, Benjamin Kramer
<benny.kra at googlemail.com> wrote:
> Author: d0k
> Date: Thu Sep 27 13:29:58 2012
> New Revision: 164784
>
> URL: http://llvm.org/viewvc/llvm-project?rev=164784&view=rev
> Log:
> Fix a integer overflow in SimplifyCFG's look up table formation logic.
>
> If the width is very large it gets truncated from uint64_t to uint32_t when
> passed to TD->fitsInLegalInteger. The truncated value can fit in a register.
> This manifested in massive memory usage or crashes (PR13946).

Thanks for fixing!



More information about the llvm-commits mailing list