Add an optimization that does CSE in a group of similar GEPs.

Description

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.

Details

Committed
elibenMay 1 2014, 11:38 AM
Parents
rL207782: DebugInfo: Correct the attribute type kind.
Branches
Unknown
Tags
Unknown