aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2013-07-30 00:24:09 +0000
committerQuentin Colombet <qcolombet@apple.com>2013-07-30 00:24:09 +0000
commit75c9433b49b1e4e2d7e61249c3cd0e3ce910d5c8 (patch)
tree8d078de34703eaec736eb7137ce1939821713c3a /lib/Target/ARM/ARMAsmPrinter.cpp
parent3466fb11b70e5512fe15c94b8da99596e69c39cf (diff)
downloadexternal_llvm-75c9433b49b1e4e2d7e61249c3cd0e3ce910d5c8.zip
external_llvm-75c9433b49b1e4e2d7e61249c3cd0e3ce910d5c8.tar.gz
external_llvm-75c9433b49b1e4e2d7e61249c3cd0e3ce910d5c8.tar.bz2
[DAGCombiner] insert_vector_elt: Avoid building a vector twice.
This patch prevents the following combine when the input vector is used more than once. insert_vector_elt (build_vector elt0, ..., eltN), NewEltIdx, idx => build_vector elt0, ..., NewEltIdx, ..., eltN The reasons are: - Building a vector may be expensive, so try to reuse the existing part of a vector instead of creating a new one (think big vectors). - elt0 to eltN now have two users instead of one. This may prevent some other optimizations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions