[PATCH] D12197: [DAGCombiner] Fold together mul and shl when both are by a constant

John Brawn via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 08:46:05 PDT 2015


john.brawn created this revision.
john.brawn added reviewers: t.p.northover, rengolin, resistor.
john.brawn added a subscriber: llvm-commits.
john.brawn set the repository for this revision to rL LLVM.

This is intended to improve code generation for GEPs, as the index value is shifted by the element size and in GEPs of multi-dimensional arrays the index of higher dimensions is multiplied by the lower dimension size.

Repository:
  rL LLVM

http://reviews.llvm.org/D12197

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/ARM/gep-optimization.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12197.32700.patch
Type: text/x-patch
Size: 3713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150820/85c9a02a/attachment.bin>


More information about the llvm-commits mailing list