Preserve load alignment in instcombine transformations. I've been unable to
authorBob Wilson <bob.wilson@apple.com>
Fri, 29 Jan 2010 22:39:21 +0000 (22:39 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 29 Jan 2010 22:39:21 +0000 (22:39 +0000)
commitfb2ea6130ddd318867e3afc23fb7eded64278841
tree497cb3e687edfea086c435e2972114032f027942
parente3a1e506809acbddceb6840914879c498d454f26
Preserve load alignment in instcombine transformations.  I've been unable to
create a testcase where this matters.  The select+load transformation only
occurs when isSafeToLoadUnconditionally is true, and in those situations,
instcombine also changes the underlying objects to be aligned.  This seems
like a good idea regardless, and I've verified that it doesn't pessimize
the subsequent realignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94850 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp