diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-05-06 02:07:24 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-05-06 02:07:24 +0000 |
commit | 8b9dc21d6f12a0251cdb6116c2297c13d77073d5 (patch) | |
tree | cdad0219bbabab022640e8ef2abeff2fc50889a7 /test/Analysis | |
parent | eaf14786ca3975266ed7041ac242122c02baf1cf (diff) | |
download | external_llvm-8b9dc21d6f12a0251cdb6116c2297c13d77073d5.zip external_llvm-8b9dc21d6f12a0251cdb6116c2297c13d77073d5.tar.gz external_llvm-8b9dc21d6f12a0251cdb6116c2297c13d77073d5.tar.bz2 |
Fix unchecked uses of DominatorTree in MemoryDependenceAnalysis.
Use unknown results for places where it would be needed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r-- | test/Analysis/MemoryDependenceAnalysis/lit.local.cfg | 1 | ||||
-rw-r--r-- | test/Analysis/MemoryDependenceAnalysis/memdep_requires_dominator_tree.ll | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/Analysis/MemoryDependenceAnalysis/lit.local.cfg b/test/Analysis/MemoryDependenceAnalysis/lit.local.cfg new file mode 100644 index 0000000..c6106e4 --- /dev/null +++ b/test/Analysis/MemoryDependenceAnalysis/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.ll'] diff --git a/test/Analysis/MemoryDependenceAnalysis/memdep_requires_dominator_tree.ll b/test/Analysis/MemoryDependenceAnalysis/memdep_requires_dominator_tree.ll new file mode 100644 index 0000000..3c95770 --- /dev/null +++ b/test/Analysis/MemoryDependenceAnalysis/memdep_requires_dominator_tree.ll @@ -0,0 +1,19 @@ +; RUN: opt -memdep -gvn < %s + +define void @__memdep_requires_dominator_tree(i32* nocapture %bufUInt, i32* nocapture %pattern) nounwind { +entry: + br label %for.body + +for.exit: ; preds = %for.body + ret void + +for.body: ; preds = %for.body, %entry + %i.01 = phi i32 [ 0, %entry ], [ %tmp8.7, %for.body ] + %arrayidx = getelementptr i32* %bufUInt, i32 %i.01 + %arrayidx5 = getelementptr i32* %pattern, i32 %i.01 + %tmp6 = load i32* %arrayidx5, align 4 + store i32 %tmp6, i32* %arrayidx, align 4 + %tmp8.7 = add i32 %i.01, 8 + %cmp.7 = icmp ult i32 %tmp8.7, 1024 + br i1 %cmp.7, label %for.body, label %for.exit +} |