summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/pr14333.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-11-14 05:08:56 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-11-14 05:08:56 +0000
commitc79532d1010617d9428c934d4c2c8724cef8fa97 (patch)
treed0a9ffd98d28b946cd521de3f1fafef51bebbc46 /llvm/test/CodeGen/X86/pr14333.ll
parent72ee18c12a17bc0a1bb598d79653cf38cf2ff9af (diff)
downloadbcm5719-llvm-c79532d1010617d9428c934d4c2c8724cef8fa97.tar.gz
bcm5719-llvm-c79532d1010617d9428c934d4c2c8724cef8fa97.zip
Handle DAG CSE adding new uses during ReplaceAllUsesWith. Fixes PR14333.
llvm-svn: 167912
Diffstat (limited to 'llvm/test/CodeGen/X86/pr14333.ll')
-rw-r--r--llvm/test/CodeGen/X86/pr14333.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/pr14333.ll b/llvm/test/CodeGen/X86/pr14333.ll
new file mode 100644
index 00000000000..86c12ef6b54
--- /dev/null
+++ b/llvm/test/CodeGen/X86/pr14333.ll
@@ -0,0 +1,12 @@
+; RUN: llc -mtriple=x86_64-unknown-unknown < %s
+%foo = type { i64, i64 }
+define void @bar(%foo* %zed) {
+ %tmp = getelementptr inbounds %foo* %zed, i64 0, i32 0
+ store i64 0, i64* %tmp, align 8
+ %tmp2 = getelementptr inbounds %foo* %zed, i64 0, i32 1
+ store i64 0, i64* %tmp2, align 8
+ %tmp3 = bitcast %foo* %zed to i8*
+ call void @llvm.memset.p0i8.i64(i8* %tmp3, i8 0, i64 16, i32 8, i1 false)
+ ret void
+}
+declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind
OpenPOWER on IntegriCloud