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)
commit4eb03123dfda2de88a84852834845678833c8c36
treeb738b4b860b795a3a4cc3879cb99abc149f067ea
parentebe6584c32a5f6b475d8d1d29857def9f2e2adf6
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219902 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/narrow-switch.ll [new file with mode: 0644]