[PATCH] Fix PR16360
Michael Liao
michael.liao at intel.com
Wed Jun 19 10:14:19 PDT 2013
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
-------------- 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/20130619/47b25217/attachment.bin>
More information about the llvm-commits
mailing list