<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 5/3/11 5:25 PM, Arushi Aggarwal wrote:
<blockquote
cite="mid:BANLkTinJ86mKk_tuL=c3McCUY--Ws51wUA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Hi,</div>
<div><br>
</div>
<div>GVN seems to be running in an infinite loop on my example. I
have attached the output of one iteration. I cant seem to reduce
the testcase either. <br>
</div>
</blockquote>
<br>
Are you running with LLVM 2.9 or LLVM mainline?<br>
<br>
-- John T.<br>
<br>
<blockquote
cite="mid:BANLkTinJ86mKk_tuL=c3McCUY--Ws51wUA@mail.gmail.com"
type="cite">
<div><br>
</div>
<div>Any pointers to how to reduce the test case.</div>
<div><br>
</div>
<div>THanks,</div>
<div>Arushi</div>
<div><br>
</div>
<div>GVN iteration: 8</div>
<div>GVN WIDENED LOAD: %0 = load i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23), align 2, !dbg
!875</div>
<div>TO: %1 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div>GVN COERCED INST:</div>
<div> %0 = load i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23), align 2, !dbg
!875</div>
<div> %1 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div> %3 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div><br>
</div>
<div><br>
</div>
<div>GVN removed: %3 = load i16* bitcast (i8* getelementptr
inbounds (%struct.CHESS_POSITION* @search, i64 0, i32 23) to
i16*), align 2</div>
<div>GVN WIDENED LOAD: %0 = load i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23), align 2, !dbg
!875</div>
<div>TO: %1 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div>GVN COERCED INST:</div>
<div> %0 = load i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23), align 2, !dbg
!875</div>
<div> %1 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div> %6 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div><br>
</div>
<div><br>
</div>
<div>GVN removed: %6 = load i16* bitcast (i8* getelementptr
inbounds (%struct.CHESS_POSITION* @search, i64 0, i32 23) to
i16*), align 2</div>
<div>GVN WIDENED LOAD: %0 = load i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23), align 2, !dbg
!875</div>
<div>TO: %1 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div>GVN COERCED INST:</div>
<div> %0 = load i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23), align 2, !dbg
!875</div>
<div> %1 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div> %9 = load i16* bitcast (i8* getelementptr inbounds
(%struct.CHESS_POSITION* @search, i64 0, i32 23) to i16*), align
2</div>
<div><br>
</div>
<div><br>
</div>
<div>GVN removed: %9 = load i16* bitcast (i8* getelementptr
inbounds (%struct.CHESS_POSITION* @search, i64 0, i32 23) to
i16*), align 2</div>
<div>GVN removed: %10 = trunc i16 %1 to i8</div>
<div>GVN removed: %10 = trunc i16 %3 to i8</div>
<div>GVN removed: %10 = trunc i16 %5 to i8</div>
<div>GVN iteration: 9</div>
<div><br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>