Reapply r219832 - InstCombine: Narrow switch instructions using known bits.
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 16 Oct 2014 06:00:46 +0000 (06:00 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 16 Oct 2014 06:00:46 +0000 (06:00 +0000)
commit5c221ef98f698a23aa7dd9b1f46770d2501f210d
treee1899d38cd9e3239719ca30fe1909b71c2587615
parent670c62770e0f3923602bdbb5aba7e4a7800b3ce1
Reapply r219832 - InstCombine: Narrow switch instructions using known bits.

The code committed in r219832 asserted when it attempted to shrink a switch
statement whose type was larger than 64-bit.

llvm-svn: 219902
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/narrow-switch.ll [new file with mode: 0644]