fix a bug noticed by inspection: when instcombine sinks loads through
authorChris Lattner <sabre@nondot.org>
Sun, 1 Nov 2009 19:50:13 +0000 (19:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Nov 2009 19:50:13 +0000 (19:50 +0000)
commite3c6281a98655cee3b8d870109c81fa4338fdf9d
treee5ae8edbbd3d20c205a7e5cb3686e8eae9ac989a
parent3e54f8850a262fe0c8c7253b4e0ac700566c7365
fix a bug noticed by inspection: when instcombine sinks loads through
phis, it didn't preserve the alignment of the load.  This is a missed
optimization of the alignment is high and a miscompilation when the
alignment is low.

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