aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-15 23:19:35 +0000
committerDan Gohman <gohman@apple.com>2008-10-15 23:19:35 +0000
commitbc0278400c6e067212ef1224e4e9bb25fbdbf594 (patch)
tree791ea2faa66c85009a097ec733901e667fb7fa87 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent7847142f268eab54d6c05cacba539704356aa3e5 (diff)
downloadllvm-bc0278400c6e067212ef1224e4e9bb25fbdbf594.zip
llvm-bc0278400c6e067212ef1224e4e9bb25fbdbf594.tar.gz
llvm-bc0278400c6e067212ef1224e4e9bb25fbdbf594.tar.bz2
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. llvm-svn: 57608
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions