summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2018-11-09 10:23:46 +0000
committerFlorian Hahn <florian.hahn@arm.com>2018-11-09 10:23:46 +0000
commit52578f95c9fcf7b85beea921d401f49b2f6e9d1d (patch)
tree4da059d5b168c54a586dd0562a3a528c58e2a7d5 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parente6b727e552844168c53ca1aff9c87b196f221a23 (diff)
downloadbcm5719-llvm-52578f95c9fcf7b85beea921d401f49b2f6e9d1d.tar.gz
bcm5719-llvm-52578f95c9fcf7b85beea921d401f49b2f6e9d1d.zip
[CallSiteSplitting] Only record conditions up to the IDom(call site).
We can stop recording conditions once we reached the immediate dominator for the block containing the call site. Conditions in predecessors of the that node will be the same for all paths to the call site and splitting is not beneficial. This patch makes CallSiteSplitting dependent on the DT anlysis. because the immediate dominators seem to be the easiest way of finding the node to stop at. I had to update some exiting tests, because they were checking for conditions that were true/false on all paths to the call site. Those should now be handled by instcombine/ipsccp. Reviewers: davide, junbuml Reviewed By: junbuml Differential Revision: https://reviews.llvm.org/D44627 llvm-svn: 346483
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud