llvm-6502/lib
Dan Gohman 2276a7bc8e Teach instcombine's visitLoad to scan back several instructions
to find opportunities for store-to-load forwarding or load CSE,
in the same way that visitStore scans back to do DSE. Also, define
a new helper function for testing whether the addresses of two
memory accesses are known to have the same value, and use it in
both visitStore and visitLoad.

These two changes allow instcombine to eliminate loads in code
produced by front-ends that frequently emit obviously redundant
addressing for memory references.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57608 91177308-0d34-0410-b5e6-96231b3b80d8
2008-10-15 23:19:35 +00:00
..
Analysis do not use deprecated interfaces 2008-10-13 10:21:17 +00:00
Archive
AsmParser regenerate 2008-10-15 12:05:02 +00:00
Bitcode Rename APFloat::convertToAPInt to bitcastToAPInt to 2008-10-09 18:53:47 +00:00
CodeGen Adjust whitespace in debug messages to be more consistent 2008-10-15 02:57:38 +00:00
Debugger
ExecutionEngine little optimization: reuse getPointerToGlobalIfAvailable(CGV) value in emitGlobals() 2008-10-14 10:04:52 +00:00
Linker Also properly handle linking of strong alias and weak global 2008-10-15 20:10:50 +00:00
Support Fix command-line option printing to print two spaces where needed, 2008-10-14 20:25:08 +00:00
System Add <cstdio> include where needed by gcc-4.4. 2008-10-08 07:23:46 +00:00
Target move PR1941 here. 2008-10-15 16:33:52 +00:00
Transforms Teach instcombine's visitLoad to scan back several instructions 2008-10-15 23:19:35 +00:00
VMCore Correct the name of isTrapping in comments. 2008-10-15 22:56:21 +00:00
Makefile