summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2018-04-05 09:48:45 +0000
committerFlorian Hahn <florian.hahn@arm.com>2018-04-05 09:48:45 +0000
commit831a757728bcbb8b062ec102b9794c2dec7f82a6 (patch)
tree4843e81ff8b0ed96dfbc3d98cbe9ff3113065807 /llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll
parent44e2e9f1c5b755001fe32319d1cf933b77c0aef8 (diff)
downloadbcm5719-llvm-831a757728bcbb8b062ec102b9794c2dec7f82a6.tar.gz
bcm5719-llvm-831a757728bcbb8b062ec102b9794c2dec7f82a6.zip
[LoopInterchange] Preserve LoopInfo after interchanging.
LoopInterchange relies on LoopInfo being up-to-date, so we should preserve it after interchanging. This patch updates restructureLoops to move the BBs of the interchanged loops to the right place. Reviewers: davide, efriedma, karthikthecool, mcrosier Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D45278 llvm-svn: 329264
Diffstat (limited to 'llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll')
-rw-r--r--llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll b/llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll
index 5b040042fc0..b19a4a4875b 100644
--- a/llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll
+++ b/llvm/test/Transforms/LoopInterchange/loop-interchange-optimization-remarks.ll
@@ -1,7 +1,8 @@
; Test optimization remarks generated by the LoopInterchange pass.
;
-; RUN: opt < %s -basicaa -loop-interchange -pass-remarks-output=%t -pass-remarks-missed='loop-interchange' \
-; RUN: -pass-remarks='loop-interchange' -S
+; RUN: opt < %s -basicaa -loop-interchange -verify-dom-info -verify-loop-info \
+; RUN: -pass-remarks-output=%t -pass-remarks-missed='loop-interchange' \
+; RUN: -pass-remarks='loop-interchange' -S
; RUN: cat %t | FileCheck %s
@A = common global [100 x [100 x i32]] zeroinitializer
OpenPOWER on IntegriCloud