<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
a) this should go to llvm-commits to increase it's odds of being
reviewed and applied<br>
b) you'll need to provide a full test case - both because we strong
encourage one for every patch and because it's not entirely clear
what you're getting at (at least to me)<br>
<br>
Philip<br>
<br>
<div class="moz-cite-prefix">On 04/18/2014 05:19 AM, Carlo Kok
wrote:<br>
</div>
<blockquote cite="mid:op.xeihuammudbflp@macpro" type="cite">
<br>
When using the merge func pass with two functions that return the
same kind of struct but with different element types merge func
tries to do a bitcast of struct to struct.
<br>
<br>
%kv1 = type { i32*, i32* }
<br>
%kv2 = type { i8*, i8* }
<br>
<br>
define %kv1 @fn1() {
<br>
...
<br>
}
<br>
<br>
define %kv2 @fn2() {
<br>
..
<br>
}
<br>
<br>
The attached patch checks for two struct types & uses
insert/extract to create the right record.
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>