diff options
author | Dan Gohman <gohman@apple.com> | 2007-10-12 14:08:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-10-12 14:08:57 +0000 |
commit | a3f269f7f6211958774f151833870935c91feaee (patch) | |
tree | e1e622f47d5bf71414ea83a7b5eaf126eb364399 /lib/Target/PowerPC | |
parent | 52c7ff70679d31d95db3f9c15fb7192e504942a9 (diff) | |
download | external_llvm-a3f269f7f6211958774f151833870935c91feaee.zip external_llvm-a3f269f7f6211958774f151833870935c91feaee.tar.gz external_llvm-a3f269f7f6211958774f151833870935c91feaee.tar.bz2 |
Mark vector pow, ctpop, cttz, and ctlz as Expand on PowerPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index ca1982f..bd43d49 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -284,8 +284,11 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) setOperationAction(ISD::SMUL_LOHI, (MVT::ValueType)VT, Expand); setOperationAction(ISD::UDIVREM, (MVT::ValueType)VT, Expand); setOperationAction(ISD::SDIVREM, (MVT::ValueType)VT, Expand); - setOperationAction(ISD::SCALAR_TO_VECTOR, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::FPOW, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::CTPOP, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::CTLZ, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::CTTZ, (MVT::ValueType)VT, Expand); } // We can custom expand all VECTOR_SHUFFLEs to VPERM, others we can handle |