llvm-project/llvm/test/CodeGen/XCore
Nirav Dave d839749ae8 [DAG] Improve Aliasing of operations to static alloca
Re-recommiting after landing DAG extension-crash fix.

Recommiting after adding check to avoid miscomputing alias information
on addresses of the same base but different subindices.

Memory accesses offset from frame indices may alias, e.g., we
may merge write from function arguments passed on the stack when they
are contiguous. As a result, when checking aliasing, we consider the
underlying frame index's offset from the stack pointer.

Static allocs are realized as stack objects in SelectionDAG, but its
offset is not set until post-DAG causing DAGCombiner's alias check to
consider access to static allocas to frequently alias. Modify isAlias
to consider access between static allocas and access from other frame
objects to be considered aliasing.

Many test changes are included here. Most are fixes for tests which
indirectly relied on our aliasing ability and needed to be modified to
preserve their original intent.

The remaining tests have minor improvements due to relaxed
ordering. The exception is CodeGen/X86/2011-10-19-widen_vselect.ll
which has a minor degradation dispite though the pre-legalized DAG is
improved.

Reviewers: rnk, mkuper, jonpa, hfinkel, uweigand

Reviewed By: rnk

Subscribers: sdardis, nemanjai, javed.absar, llvm-commits

Differential Revision: https://reviews.llvm.org/D33345

llvm-svn: 308350
2017-07-18 20:06:24 +00:00
..
2008-11-17-Shl64.ll
2009-01-08-Crash.ll
2009-01-14-Remat-Crash.ll
2009-03-27-v2f64-param.ll
2009-07-15-store192.ll
2010-02-25-LSR-Crash.ll
2011-01-31-DAGCombineBug.ll
2011-08-01-DynamicAllocBug.ll
DbgValueOtherTargets.test
addsub64.ll
aliases.ll
align.ll
alignment.ll
ashr.ll
atomic.ll
basictest.ll
bigstructret.ll
byVal.ll
call.ll
codemodel.ll
constants.ll
dwarf_debug.ll
epilogue_prologue.ll AsmPrinter: mark the beginning and the end of a function in verbose mode 2017-05-23 21:22:16 +00:00
events.ll
exception.ll
float-intrinsics.ll
fneg.ll DAG: Fold fneg into compare with constant into the constant 2017-01-30 17:57:28 +00:00
getid.ll
globals.ll
indirectbr.ll
inline-asm.ll
ladd_lsub_combine.ll
licm-ldwcp.ll
linkage.ll
lit.local.cfg
llvm-intrinsics.ll
load.ll
memcpy.ll
misc-intrinsics.ll
mkmsk.ll
mul64.ll
offset_folding.ll
private.ll
ps-intrinsics.ll
resources.ll
resources_combine.ll
scavenging.ll
section-name.ll Disallow redefinition of section symbols. 2017-02-24 21:44:58 +00:00
sext.ll
shedulingPreference.ll
sr-intrinsics.ll
store.ll
switch.ll
switch_long.ll
threads.ll
tls.ll
trampoline.ll
trap.ll
unaligned_load.ll
unaligned_store.ll
unaligned_store_combine.ll
varargs.ll [DAG] Improve Aliasing of operations to static alloca 2017-07-18 20:06:24 +00:00
zext.ll
zextfree.ll