make switch condition constant folding much more aggressive, handling
commit3858938b043bac2f046304ff99a54905acdcc6dd
authorChris Lattner <sabre@nondot.org>
Mon, 28 Feb 2011 01:02:29 +0000 (28 01:02 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Feb 2011 01:02:29 +0000 (28 01:02 +0000)
treeb680db64c1a2460d0f7003276d486fc7d4d9d220
parent525544de0835d5ee7497f4897e255727b162e0aa
make switch condition constant folding much more aggressive, handling
compound statements and break statements.  This implements enough to
handle PR9322 and rdar://6970405.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126602 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGStmt.cpp
test/CodeGen/switch-dce.c