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)
commit68dc3c7ab2ccaa4a5a1459ba506ef340ed23a5ed
tree4fbce1218bd674edba5f7172e6ea83d518ac2d55
parent6f814db8d7a842255629fa31ac8daea2e3627629
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.

llvm-svn: 219876
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/align.ll [new file with mode: 0644]