Preserve non-byval pointer alignment attributes using @llvm.assume when inlining
authorHal Finkel <hfinkel@anl.gov>
Wed, 15 Oct 2014 23:44:41 +0000 (23:44 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 15 Oct 2014 23:44:41 +0000 (23:44 +0000)
commit43141a076414f2228baf86ea072612a199215c3e
tree0c9ed7826936c53d32063b5d0e8537af5cbf25de
parent76ce614af7d36fa1134a3db6a0c46c47f1eb1a24
Preserve non-byval pointer alignment attributes using @llvm.assume when inlining

For pointer-typed function arguments, enhanced alignment can be asserted using
the 'align' attribute. When inlining, if this enhanced alignment information is
not otherwise available, preserve it using @llvm.assume-based alignment
assumptions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219876 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
test/Transforms/Inline/align.ll [new file with mode: 0644]