llvm-6502/test/Transforms/Inline
Chandler Carruth 961e1acfb2 Fix PR13412, a nasty miscompile due to the interleaved
instsimplify+inline strategy.

The crux of the problem is that instsimplify was reasonably relying on
an invariant that is true within any single function, but is no longer
true mid-inline the way we use it. This invariant is that an argument
pointer != a local (alloca) pointer.

The fix is really light weight though, and allows instsimplify to be
resiliant to these situations: when checking the relation ships to
function arguments, ensure that the argumets come from the same
function. If they come from different functions, then none of these
assumptions hold. All credit to Benjamin Kramer for coming up with this
clever solution to the problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161410 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-07 10:59:59 +00:00
..
2003-09-14-InlineValue.ll
2003-09-22-PHINodeInlineFail.ll
2003-09-22-PHINodesInExceptionDest.ll
2003-09-22-PHINodesInNormalInvokeDest.ll
2003-10-13-AllocaDominanceProblem.ll
2004-04-15-InlineDeletesCall.ll
2004-04-20-InlineLinkOnce.ll
2004-10-17-InlineFunctionWithoutReturn.ll
2006-01-14-CallGraphUpdate.ll
2006-07-12-InlinePruneCGUpdate.ll
2006-11-09-InlineCGUpdate-2.ll
2006-11-09-InlineCGUpdate.ll
2007-04-15-InlineEH.ll Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
2007-06-25-WeakInline.ll
2007-12-19-InlineNoUnwind.ll
2008-09-02-NoInline.ll
2009-01-08-NoInlineDynamicAlloca.ll
2009-01-13-RecursiveInlineCrash.ll
2009-05-07-CallUsingSelfCrash.ll
2010-05-12-ValueMap.ll
2010-05-31-ByvalTailcall.ll
alloca_test.ll
alloca-bonus.ll Initial commit for the rewrite of the inline cost analysis to operate 2012-03-31 12:42:41 +00:00
alloca-in-scc.ll
always-inline.ll Add some more testing to cover the remaining two cases where 2012-04-01 10:36:17 +00:00
array_merge.ll
basictest.ll
blockaddress.ll
byval.ll
callgraph-update.ll
casts.ll Convert all tests using TCL-style quoting to use shell-style quoting. 2012-07-02 12:47:22 +00:00
cfg_preserve_test.ll
crash2.ll
crash.ll
delete-call.ll Convert the uses of '|&' to use '2>&1 |' instead, which works on old 2012-07-02 18:37:59 +00:00
devirtualize-2.ll
devirtualize-3.ll
devirtualize.ll
dynamic_alloca_test.ll Initial commit for the rewrite of the inline cost analysis to operate 2012-03-31 12:42:41 +00:00
externally_available.ll Convert all tests using TCL-style quoting to use shell-style quoting. 2012-07-02 12:47:22 +00:00
gvn-inline-iteration.ll
inline_cleanup.ll Sink the collection of return instructions until after *all* 2012-04-06 17:21:31 +00:00
inline_constprop.ll Fix PR13412, a nasty miscompile due to the interleaved 2012-08-07 10:59:59 +00:00
inline_dce.ll
inline_invoke.ll
inline_prune.ll Convert all tests using TCL-style quoting to use shell-style quoting. 2012-07-02 12:47:22 +00:00
inline_returns_twice.ll
inline-invoke-tail.ll Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
inline-optsize.ll Fix the inliner so that the optsize function attribute don't alter the 2012-05-23 13:42:57 +00:00
inline-tail.ll
invoke_test-1.ll Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
invoke_test-2.ll
invoke_test-3.ll
lifetime.ll
lit.local.cfg
nested-inline.ll
noinline-recursive-fn.ll Initial commit for the rewrite of the inline cost analysis to operate 2012-03-31 12:42:41 +00:00
noinline.ll
PR4909.ll
ptr-diff.ll Initial commit for the rewrite of the inline cost analysis to operate 2012-03-31 12:42:41 +00:00