[llvm-commits] patch: extract element fix in DAGCombine
Mon Ping Wang
wangmp at apple.com
Tue Dec 9 01:35:08 PST 2008
Hi,
This small patch fixes a small problem in DAGCombine for extract
vector element. The current code will fail if we try to extract from
a bit convert of a shuffle where the bit convert changes the number of
elements. The optimization tries to go through the bit convert and
uses the extract vector index to examine the mask of the shuffle.
This is not safe when the bit convert changes the number and size of
the elements. The fix is to only try to do the optimization if the
bit convert doesn't change the number of elements.
-- Mon Ping
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combine.patch
Type: application/octet-stream
Size: 1577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081209/612e7c84/attachment.obj>
More information about the llvm-commits
mailing list