when merging two loads, make sure to take the min of their alignment,
authorChris Lattner <sabre@nondot.org>
Sun, 1 Nov 2009 20:07:07 +0000 (20:07 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Nov 2009 20:07:07 +0000 (20:07 +0000)
commita664bb7bdcc074cb03a2fa6ed1c52a2ca9453550
tree4326efaab57032efbbc2fe022c1e7407c1a816e5
parent751a362c22ed5e08aafbc8f243f7aac3203189f8
when merging two loads, make sure to take the min of their alignment,
not the max.  This didn't matter until the previous patch because
instcombine would refuse to sink loads with differenting alignments.

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