Constrain PowerPC autovectorization to fix bug 15041.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 7 Feb 2013 20:33:57 +0000 (20:33 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 7 Feb 2013 20:33:57 +0000 (20:33 +0000)
commitb3cece13cf42bf22ded3505068de2715b6d84ea6
tree40c0fbdb8224bf909a6682be7494ccbb0f80d909
parent710b4c8fa211b464c94036109ce85e615ebd2231
Constrain PowerPC autovectorization to fix bug 15041.

Certain vector operations don't vectorize well with the current
PowerPC implementation.  Element insert/extract performs poorly
without VSX support because Altivec requires going through memory.
SREM, UREM, and VSELECT all produce bad scalar code.

There's a lot of work to do for the cost model before
autovectorization will be tuned well, and this is not an attempt to
address the larger problem.

llvm-svn: 174660
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp