[PATCH] Fix PR16360

Michael Liao michael.liao at intel.com
Thu Jun 20 16:14:23 PDT 2013


Ping with patch reattached. - Michael

On Wed, 2013-06-19 at 10:14 -0700, Michael Liao wrote:
> Hi,
> 
> The attached patch fixes PR16360. In DAG combining, when (srl (anyextend
> x), c) is folded into (anyextend (srl x, c)), the high bits are not
> cleared. That makes such transformation too aggressive and generates
> wrong code. The fix will 'and' a constant mask after 'anyextend', i.e.
> folding from (srl (anyextend x), c) to (and (anyextend (srl x, c)),
> mask).
> 
> Thanks of review
> - Michael
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-PR16360.patch
Type: text/x-patch
Size: 2295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130620/43027686/attachment.bin>


More information about the llvm-commits mailing list