diff options
author | John Brawn <john.brawn@arm.com> | 2015-08-21 10:48:17 +0000 |
---|---|---|
committer | John Brawn <john.brawn@arm.com> | 2015-08-21 10:48:17 +0000 |
commit | eab960c46f3d71cc3c6614be7e538c727996fcaa (patch) | |
tree | 0223869aaff0e26b642094fee8aa2350f76c260d /clang/lib/Format/Format.cpp | |
parent | 2ecb118a1df230715162c9a77b02eeec8fa7d791 (diff) | |
download | bcm5719-llvm-eab960c46f3d71cc3c6614be7e538c727996fcaa.tar.gz bcm5719-llvm-eab960c46f3d71cc3c6614be7e538c727996fcaa.zip |
[DAGCombiner] Fold together mul and shl when both are by a constant
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.
Differential Revision: http://reviews.llvm.org/D12197
llvm-svn: 245689
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions