diff options
| author | Florian Hahn <florian.hahn@arm.com> | 2018-11-13 17:54:43 +0000 |
|---|---|---|
| committer | Florian Hahn <florian.hahn@arm.com> | 2018-11-13 17:54:43 +0000 |
| commit | 107d0a87565ac7f067e38b1f73866959cad6f52f (patch) | |
| tree | 015c914d553352a51b835fbbad8bccf8852475b7 /llvm/test/Transforms/CallSiteSplitting | |
| parent | fa43892d6fdf77e373dcf54f1c934380b8731df2 (diff) | |
| download | bcm5719-llvm-107d0a87565ac7f067e38b1f73866959cad6f52f.tar.gz bcm5719-llvm-107d0a87565ac7f067e38b1f73866959cad6f52f.zip | |
[CSP, Cloning] Update DuplicateInstructionsInSplitBetween to use DomTreeUpdater.
This patch updates DuplicateInstructionsInSplitBetween to update a DTU
instead of applying updates to the DT directly.
Given that there only are 2 users, also updated them in this patch to
avoid churn.
I slightly moved the code in CallSiteSplitting around to reduce the
places where we have to pass in DTU. If necessary, I could split those
changes in a separate patch.
This fixes missing DT updates when dealing with musttail calls in
CallSiteSplitting, by using DTU->deleteBB.
Reviewers: junbuml, kuhar, NutshellySima, indutny, brzycki
Reviewed By: NutshellySima
llvm-svn: 346769
Diffstat (limited to 'llvm/test/Transforms/CallSiteSplitting')
| -rw-r--r-- | llvm/test/Transforms/CallSiteSplitting/musttail.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/CallSiteSplitting/musttail.ll b/llvm/test/Transforms/CallSiteSplitting/musttail.ll index faa352dd5bf..f46b9865248 100644 --- a/llvm/test/Transforms/CallSiteSplitting/musttail.ll +++ b/llvm/test/Transforms/CallSiteSplitting/musttail.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -callsite-splitting -S | FileCheck %s +; RUN: opt < %s -callsite-splitting -verify-dom-info -S | FileCheck %s ;CHECK-LABEL: @caller ;CHECK-LABEL: Top.split: |

