commit | 167a57ca452efbb014ebce7ecfa99501b5039611 | [log] [tgz] |
---|---|---|
author | Eli Bendersky <eliben@google.com> | Thu May 01 18:38:36 2014 +0000 |
committer | Eli Bendersky <eliben@google.com> | Thu May 01 18:38:36 2014 +0000 |
tree | 6a2b1de596c6e17369a85ab06e8bf0407bc07d83 | |
parent | 75bb54dcc55d1c206b37af9a91b8e479f9f75104 [diff] |
Add an optimization that does CSE in a group of similar GEPs. This optimization merges the common part of a group of GEPs, so we can compute each pointer address by adding a simple offset to the common part. The optimization is currently only enabled for the NVPTX backend, where it has a large payoff on some benchmarks. Review: http://reviews.llvm.org/D3462 Patch by Jingyue Wu. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207783 91177308-0d34-0410-b5e6-96231b3b80d8