llvm-project/llvm/test/Transforms/MergeFunc
Nikita Popov b361d3bbcd [MergeFuncs] Remove incorrect attribute copying
Fix for https://bugs.llvm.org/show_bug.cgi?id=44236. This code was
originally introduced in rG36512330041201e10f5429361bbd79b1afac1ea1.
However, the attribute copying was done in the wrong place (in general
call replacement, not thunk generation) and a proper fix was
implemented in D12581.

Previously this code was just unnecessary but harmless (because
FunctionComparator ensured that the attributes of the two functions
are exactly the same), but since byval was changed to accept a type
this copying is actively wrong and may result in malformed IR.

Differential Revision: https://reviews.llvm.org/D71173
2019-12-11 20:09:54 +01:00
..
2011-02-08-RemoveEqual.ll
2013-01-10-MergeFuncAssert.ll
address-spaces.ll
alias.ll
alloca.ll
apply_function_attributes.ll
byval-attr-congruent-type.ll [MergeFuncs] Remove incorrect attribute copying 2019-12-11 20:09:54 +01:00
byval-attr-type.ll
call-and-invoke-with-ranges.ll
comdat.ll
constant-entire-value.ll
crash.ll
crash2.ll
external-before-local.ll
fold-weak.ll
functions.ll
gep-base-type.ll
inline-asm.ll [IR] Redefine Freeze instruction 2019-11-12 10:49:00 +09:00
inttoptr-address-space.ll
inttoptr.ll
linkonce_odr.ll
merge-block-address-other-function.ll
merge-block-address.ll
merge-const-ptr-and-int.ll
merge-different-vector-types.ll
merge-ptr-and-int.ll
merge-small-unnamed-addr.ll
merge-unnamed-addr-bitcast.ll
merge-unnamed-addr.ll
merge-weak-crash.ll
mergefunc-preserve-debug-info.ll
mergefunc-struct-return.ll
no-merge-block-address-different-labels.ll
no-merge-block-address-other-function.ll
no-merge-ptr-different-sizes.ll
no-merge-ptr-int-different-values.ll
nonzero-address-spaces.ll
phi-check-blocks.ll
phi-speculation1.ll
phi-speculation2.ll
ptr-int-transitivity-1.ll
ptr-int-transitivity-2.ll
ptr-int-transitivity-3.ll
ranges-multiple.ll
ranges.ll
self-referential-global.ll
tailcall.ll
too-small.ll
undef-different-types.ll
unnamed-addr-reprocessing.ll
va_arg.ll
vector-GEP-crash.ll
vector.ll
vectors-and-arrays.ll
weak-small.ll