summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopIdiom/basic.ll
diff options
context:
space:
mode:
authorXin Tong <trent.xin.tong@gmail.com>2017-01-03 19:08:05 +0000
committerXin Tong <trent.xin.tong@gmail.com>2017-01-03 19:08:05 +0000
commit883dd1b6c4b9011c687098c1ce76b3e4dff7001d (patch)
treeeb6b7cd8f12f8268ce7f20e73960966c09e7f636 /llvm/test/Transforms/LoopIdiom/basic.ll
parent4986e819dc335de3cac25f3502f40b4b9ac5de3b (diff)
downloadbcm5719-llvm-883dd1b6c4b9011c687098c1ce76b3e4dff7001d.tar.gz
bcm5719-llvm-883dd1b6c4b9011c687098c1ce76b3e4dff7001d.zip
Enable disabled loopidiom test. Apparently we handle it now
Summary: Enable disabled loopidiom test. Apparently we handle it now. Maybe due to improvements to AA. Reviewers: atrick, danielcdh, hfinkel Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D28171 llvm-svn: 290900
Diffstat (limited to 'llvm/test/Transforms/LoopIdiom/basic.ll')
-rw-r--r--llvm/test/Transforms/LoopIdiom/basic.ll8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/test/Transforms/LoopIdiom/basic.ll b/llvm/test/Transforms/LoopIdiom/basic.ll
index 4d584de9c6f..270de2edf7a 100644
--- a/llvm/test/Transforms/LoopIdiom/basic.ll
+++ b/llvm/test/Transforms/LoopIdiom/basic.ll
@@ -97,8 +97,7 @@ for.end: ; preds = %entry
; CHECK: ret void
}
-
-;; TODO: We should be able to promote this memset. Not yet though.
+; Make sure the first store in the loop is turned into a memset.
define void @test4(i8* %Base) nounwind ssp {
bb.nph: ; preds = %entry
%Base100 = getelementptr i8, i8* %Base, i64 1000
@@ -118,9 +117,8 @@ for.body: ; preds = %bb.nph, %for.body
for.end: ; preds = %for.body, %entry
ret void
-; CHECK-TODO-LABEL: @test4(
-; CHECK-TODO: call void @llvm.memset.p0i8.i64(i8* %Base, i8 0, i64 100, i32 1, i1 false)
-; CHECK-TODO-NOT: store
+; CHECK-LABEL: @test4(
+; CHECK: call void @llvm.memset.p0i8.i64(i8* %Base, i8 0, i64 100, i32 1, i1 false)
}
; This can't be promoted: the memset is a store of a loop variant value.
OpenPOWER on IntegriCloud