Fix PR5471 by removing an instcombine xform. Some pieces of the code
authorChris Lattner <sabre@nondot.org>
Thu, 26 Nov 2009 22:04:42 +0000 (22:04 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Nov 2009 22:04:42 +0000 (22:04 +0000)
commit21f83a2f95c30b21398b6db0f80ac7eb0b4b672a
treeb86b2dfc147ef024a2322c1b11157cd2f227fd0e
parent2bbac75e5a3317b45b2b2cd6a51b1ab33e0b4518
Fix PR5471 by removing an instcombine xform.  Some pieces of the code
generates store to undef and some generates store to null as the idiom
for undefined behavior.  Since simplifycfg zaps both, don't remove the
undefined behavior in instcombine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89971 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/crash.ll
test/Transforms/InstCombine/store.ll