Fix the other half of the alignment changing issue by making sure that the
authorEric Christopher <echristo@apple.com>
Fri, 1 Oct 2010 09:02:05 +0000 (09:02 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 1 Oct 2010 09:02:05 +0000 (09:02 +0000)
commit04fcbf954fef6d9866b5120f406e7401dc9aa29f
treed1d23d216ca4e0ebe10cb5d4ae72993dd4db176e
parentb1170f0e62984199596055b2b880d03890d30604
Fix the other half of the alignment changing issue by making sure that the
memcpy alignment is the minimum of the incoming alignments.

Fixes PR 8266.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115305 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/MemCpyOptimizer.cpp