summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2015-08-21 10:48:17 +0000
committerJohn Brawn <john.brawn@arm.com>2015-08-21 10:48:17 +0000
commiteab960c46f3d71cc3c6614be7e538c727996fcaa (patch)
tree0223869aaff0e26b642094fee8aa2350f76c260d /clang/lib/Format/Format.cpp
parent2ecb118a1df230715162c9a77b02eeec8fa7d791 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud