When we promote a load of an argument make sure to take the alignment
authorEric Christopher <echristo@apple.com>
Sat, 27 Mar 2010 01:54:00 +0000 (01:54 +0000)
committerEric Christopher <echristo@apple.com>
Sat, 27 Mar 2010 01:54:00 +0000 (01:54 +0000)
commit6fde0bd39b1b431b7be30aaf9221ce6c60b0a5f0
treea7b5e12e2821e3cb348dc6a6740c4a760c38619d
parente6b293b78d8eb3eb749771d2201ace3ecd076010
When we promote a load of an argument make sure to take the alignment
of the previous load - it's usually important.  For example, we don't want
to blindly turn an unaligned load into an aligned one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99699 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/ArgumentPromotion.cpp