]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
SimplifyCFG: Teach switch generation some patterns that instcombine forms.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 4 Jul 2013 14:22:02 +0000 (14:22 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 4 Jul 2013 14:22:02 +0000 (14:22 +0000)
commit32d15d90c41c79b0f343c928b1a2d4aa2d4142ef
tree3d5104f34de54565402b6bc1d60de9c986d2a941
parent98abba7b661502f71a090ab254fb3f0db248c4c6
SimplifyCFG: Teach switch generation some patterns that instcombine forms.

This allows us to create switches even if instcombine has munged two of the
incombing compares into one and some bit twiddling. This was motivated by enum
compares that are common in clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/switch_create.ll