From 9f47fb66370e5513bb9f737923e8cb476088acec Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 21 Nov 2011 19:42:56 +0000 Subject: Fix crasher in GVN due to my recent capture tracking changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145047 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/GVN/rle.ll | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/Transforms/GVN') diff --git a/test/Transforms/GVN/rle.ll b/test/Transforms/GVN/rle.ll index 47ccd85d48..9e08004ea4 100644 --- a/test/Transforms/GVN/rle.ll +++ b/test/Transforms/GVN/rle.ll @@ -26,6 +26,15 @@ define i8 @crash0({i32, i32} %A, {i32, i32}* %P) { ret i8 %Y } +;; No PR filed, crashed in CaptureTracker. +declare void @helper() +define void @crash1() { + tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* undef, i8* undef, i64 undef, i32 1, i1 false) nounwind + %tmp = load i8* bitcast (void ()* @helper to i8*) + %x = icmp eq i8 %tmp, 15 + ret void +} + ;;===----------------------------------------------------------------------===;; ;; Store -> Load and Load -> Load forwarding where src and dst are different -- cgit v1.2.3