Fix instcombine to not introduce undefined shifts when merging two
authorChris Lattner <sabre@nondot.org>
Fri, 20 Mar 2009 22:41:15 +0000 (22:41 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 20 Mar 2009 22:41:15 +0000 (22:41 +0000)
commit344c7c5cc4dd76e3f538dcc3d4f487be0b6ca067
treec11e8bf54bfc283e12675a7217fb9dc97c276038
parentab6b226978644c438a3a7768a06dcd48509d000c
Fix instcombine to not introduce undefined shifts when merging two
shifts together.  This fixes PR3851.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67411 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2009-03-20-AShrOverShift.ll [new file with mode: 0644]