Go to file
Hal Finkel c3998306f4 Add the ability to use GEPs for address sinking in CGP
The current memory-instruction optimization logic in CGP, which sinks parts of
the address computation that can be adsorbed by the addressing mode, does this
by explicitly converting the relevant part of the address computation into
IR-level integer operations (making use of ptrtoint and inttoptr). For most
targets this is currently not a problem, but for targets wishing to make use of
IR-level aliasing analysis during CodeGen, the use of ptrtoint/inttoptr is a
problem for two reasons:
  1. BasicAA becomes less powerful in the face of the ptrtoint/inttoptr
  2. In cases where type-punning was used, and BasicAA was used
     to override TBAA, BasicAA may no longer do so. (this had forced us to disable
     all use of TBAA in CodeGen; something which we can now enable again)

This (use of GEPs instead of ptrtoint/inttoptr) is not currently enabled by
default (except for those targets that use AA during CodeGen), and so aside
from some PowerPC subtargets and SystemZ, there should be no change in
behavior. We may be able to switch completely away from the ptrtoint/inttoptr
sinking on all targets, but further testing is required.

I've doubled-up on a number of existing tests that are sensitive to the
address sinking behavior (including some store-merging tests that are
sensitive to the order of the resulting ADD operations at the SDAG level).

llvm-svn: 206092
2014-04-12 00:59:48 +00:00
clang CodeGen: Test instrumentation based profiling of templates 2014-04-12 00:54:06 +00:00
clang-tools-extra test/clang-tidy/redundant-smartptr-get*.cpp: Both of them really require shell. 2014-04-10 03:17:22 +00:00
compiler-rt tsan: serialize report printing in standalone deadlock detector 2014-04-11 17:54:27 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Introduce M_LOG2E_F and M_LOG2E 2014-03-28 21:19:03 +00:00
libcxx Remove node from a container before destroying it. Thanks to Alexander Potapenko for pointing this out. 2014-04-11 08:22:42 +00:00
libcxxabi The content of .eh_frame may be misaligned, so use memcpy. This is seen 2014-04-08 11:43:49 +00:00
lld [Mips] Factor out MIPS relocation addend reading to the separate 2014-04-11 07:25:35 +00:00
lldb Fixed SBThread.GetStopReasonDataAtIndex() to correctly return breakpoint location ID. 2014-04-11 17:27:02 +00:00
llvm Add the ability to use GEPs for address sinking in CGP 2014-04-12 00:59:48 +00:00
openmp Add the offload directory which contains the code needed to support 2014-04-09 15:40:23 +00:00
polly Fixed gcc build warnings 2014-04-11 17:56:49 +00:00