summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll')
-rw-r--r--llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll b/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll
index 995f9dc142c..770220dd07b 100644
--- a/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll
+++ b/llvm/test/Transforms/GlobalOpt/heap-sra-phi.ll
@@ -42,3 +42,11 @@ bb1: ; preds = %bb1, %bb1.thread
bb2: ; preds = %bb1
ret i32 %tmp3
}
+
+define void @bam(i64 %Size) nounwind noinline #0 {
+entry:
+ %0 = load %struct.foo*, %struct.foo** @X, align 4
+ ret void
+}
+
+attributes #0 = { "null-pointer-is-valid"="true" }
OpenPOWER on IntegriCloud