OSDN Git Service

[InstCombine] do not shrink switch conditions to illegal types (PR29009)
authorSanjay Patel <spatel@rotateright.com>
Wed, 7 Nov 2018 14:12:41 +0000 (14:12 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 7 Nov 2018 14:12:41 +0000 (14:12 +0000)
commit238b8867a8e7a18e9cdf1c72b049d8bed200ee7a
tree97329e7f24fda64a0f65bda2cdb02408aff9365e
parentbb746321447cbfed1f650392a7506371a165a793
[InstCombine] do not shrink switch conditions to illegal types (PR29009)

This patch makes shrinking switch conditions less aggressive which was introduced by:
rL274233

Note that we have 2 new bugs to track potential follow-ups that might have solved PR29009
in different ways:
https://bugs.llvm.org/show_bug.cgi?id=39569
https://bugs.llvm.org/show_bug.cgi?id=39578

Patch by:
@dendibakh (Denis Bakhvalov)

Differential Revision: https://reviews.llvm.org/D54115

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346315 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/narrow-switch.ll