summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-08-30 10:54:21 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-08-30 10:54:21 +0000
commitb992feee1327d98070c93eabed180b7e66fba315 (patch)
treefcb49dd8b7d983f49ef00335fb756b739d516a4a /clang/lib/Frontend/FrontendActions.cpp
parent1a7c369e081c0e110a76909d77531558118757cf (diff)
downloadbcm5719-llvm-b992feee1327d98070c93eabed180b7e66fba315.tar.gz
bcm5719-llvm-b992feee1327d98070c93eabed180b7e66fba315.zip
[InstCombine] Fold insert sequence if first ins has multiple users.
Summary: If the first insertelement instruction has multiple users and inserts at position 0, we can re-use this instruction when folding a chain of insertelement instructions. As we need to generate the first insertelement instruction anyways, this should be a strict improvement. We could get rid of the restriction of inserting at position 0 by creating a different shufflemask, but it is probably worth to keep the first insertelement instruction with position 0, as this is easier to do efficiently than at other positions I think. Reviewers: grosser, mkuper, fpetrogalli, efriedma Reviewed By: fpetrogalli Subscribers: gareevroman, llvm-commits Differential Revision: https://reviews.llvm.org/D37064 llvm-svn: 312110
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud