summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorSilviu Baranga <silviu.baranga@arm.com>2015-10-26 10:25:05 +0000
committerSilviu Baranga <silviu.baranga@arm.com>2015-10-26 10:25:05 +0000
commitb892e35520280a64b13e364904a6f7776c873999 (patch)
treebbec27113c4ce81e6573bd4a69c0fd9ba55c806c /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent72222f5dcafbf19905908197793732fe07458595 (diff)
downloadbcm5719-llvm-b892e35520280a64b13e364904a6f7776c873999.tar.gz
bcm5719-llvm-b892e35520280a64b13e364904a6f7776c873999.zip
[InstCombine] Teach instcombine not to create extra PHI nodes when folding GEPs
Summary: InstCombine tries to transform GEP(PHI(GEP1, GEP2, ..)) into GEP(GEP(PHI(...)) when possible. However, this may leave the old PHI node around. Even if we do end up folding the GEPs, having an extra PHI node might not be beneficial. This change makes the transformation more conservative. We now only do this if the PHI has only one use, and can therefore be removed after the transformation. Reviewers: jmolloy, majnemer Subscribers: mcrosier, mssimpso, llvm-commits Differential Revision: http://reviews.llvm.org/D13887 llvm-svn: 251281
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud