aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/LICM/preheader-safe.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/LICM/preheader-safe.ll')
-rw-r--r--test/Transforms/LICM/preheader-safe.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Transforms/LICM/preheader-safe.ll b/test/Transforms/LICM/preheader-safe.ll
index 260a5f653b77..adc4f4237a29 100644
--- a/test/Transforms/LICM/preheader-safe.ll
+++ b/test/Transforms/LICM/preheader-safe.ll
@@ -1,4 +1,5 @@
; RUN: opt -S -licm < %s | FileCheck %s
+; RUN: opt -aa-pipeline=basic-aa -passes='require<aa>,require<targetir>,require<scalar-evolution>,loop(licm)' -S %s | FileCheck %s
declare void @use_nothrow(i64 %a) nounwind
declare void @use(i64 %a)
@@ -14,6 +15,9 @@ entry:
loop: ; preds = %entry, %for.inc
%div = udiv i64 %x, %y
+ br label %loop2
+
+loop2:
call void @use_nothrow(i64 %div)
br label %loop
}