[llvm-commits] Patch: small fix to bit convert and shifts

Mon Ping Wang monping at apple.com
Sun Nov 30 20:32:48 PST 2008


Hi,

This is a small patch that fixes two problems in SelectionDAG.cpp

   1) in getShuffleScalarElt, the code assumes that if the input to  
the shuffle is a BIT_CONVERT, the input to the bit convert is also a  
vector.  This is not necessarily true as it is legal to bit convert a

   2) In getNode, the code assumes that for shifts, the shift amount  
is always a scalar.  Since shifts can operate also on vectors, this  
assumption is not correct.

-- Mon Ping

-------------- next part --------------
A non-text attachment was scrubbed...
Name: selection.patch
Type: application/octet-stream
Size: 1174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081130/baf5580c/attachment.obj>


More information about the llvm-commits mailing list