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 | 9013eaff9ab33be7febb9999046196476520829b (patch) | |
| tree | 9095c2316884551b96624d469016dc94e9ba96fb | |
| parent | 11330f7526ef11109ca31aa1abbb4f9a698cd95a (diff) | |
| download | bcm5719-llvm-9013eaff9ab33be7febb9999046196476520829b.tar.gz bcm5719-llvm-9013eaff9ab33be7febb9999046196476520829b.zip | |
Mark vector pow, ctpop, cttz, and ctlz as Expand on PowerPC.
llvm-svn: 42904
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index ca1982fe6ea..bd43d497d2d 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/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 |

